Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30036

With many roles, 'Allow role assignments' page is too large for browser window and roles end up off-page, with no horrizontal scrolling to view/select.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2, 2.8.1
    • Fix Version/s: None
    • Component/s: Roles / Access
    • Labels:
    • Database:
      Any
    • Workaround:
      Hide

      None

      Show
      None
    • URL:
      /admin/roles/allow.php?mode=assign
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_28_STABLE

      Description

      With many roles, 'Allow role assignments' page is too large for browser window and roles end up off-page, with no horrizontal scrolling to view/select.

      • see: /admin/roles/allow.php?mode=assign

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              brentb Brent Boghosian created issue -
              brentb Brent Boghosian made changes -
              Field Original Value New Value
              Priority Minor [ 4 ] Critical [ 2 ]
              Hide
              dkaelin Daniel Kaelin added a comment - - edited

              I am having this exact same problem myself. I have attached a screenshot. The screenshot was taken with the built in boxxie theme.

              It may not be readily apparent but the portal has about 20 roles and after a certain number of columns it is cut off.

              Show
              dkaelin Daniel Kaelin added a comment - - edited I am having this exact same problem myself. I have attached a screenshot. The screenshot was taken with the built in boxxie theme. It may not be readily apparent but the portal has about 20 roles and after a certain number of columns it is cut off.
              dkaelin Daniel Kaelin made changes -
              Attachment screenshot-1.jpg [ 29661 ]
              Hide
              dkaelin Daniel Kaelin added a comment -

              You can fix this by modifying the code on line 68 of allow.php. Located in wwwroot/admin/roles

              Change

              echo '<form action="' . $baseurl . '" method="post">';

              to

              echo '<form style="overflow: auto;" action="' . $baseurl . '" method="post">';

              As long as you don't mind modifying the base code. A similar fix should be rolled into the moodle base.

              Show
              dkaelin Daniel Kaelin added a comment - You can fix this by modifying the code on line 68 of allow.php. Located in wwwroot/admin/roles Change echo '<form action="' . $baseurl . '" method="post">'; to echo '<form style="overflow: auto;" action="' . $baseurl . '" method="post">'; As long as you don't mind modifying the base code. A similar fix should be rolled into the moodle base.
              jfilip Justin Filip made changes -
              Link This issue has a non-specific relationship to MDL-40338 [ MDL-40338 ]
              Hide
              skodak Petr Skoda added a comment -

              I believe this was already partially resolved in latest 2.6dev (master branch), it is now possible to both view and modify the allow* role when editing individual roles.

              Show
              skodak Petr Skoda added a comment - I believe this was already partially resolved in latest 2.6dev (master branch), it is now possible to both view and modify the allow* role when editing individual roles.
              Hide
              marina Marina Glancy added a comment -

              This is still a problem in Base theme although it does not affect Clean.

              If you can propose a code solution, that will help others who may have the same need and will increase the chance of this improvement/feature coming about sooner. If you are able to provide a patch or links to your Git repository branch, please add a patch label so we will spot it. Otherwise, how about posting in a forum on moodle.org and encouraging people to vote, comment and/or come up with a patch

              Show
              marina Marina Glancy added a comment - This is still a problem in Base theme although it does not affect Clean. If you can propose a code solution, that will help others who may have the same need and will increase the chance of this improvement/feature coming about sooner. If you are able to provide a patch or links to your Git repository branch, please add a patch label so we will spot it. Otherwise, how about posting in a forum on moodle.org and encouraging people to vote, comment and/or come up with a patch
              marina Marina Glancy made changes -
              Status Open [ 1 ] Open [ 1 ]
              Affects Version/s 2.8.1 [ 14350 ]
              Priority Critical [ 2 ] Major [ 3 ]
              Labels triaged
              Assignee moodle.com [ moodle.com ]
              Sprint candidate Later [ 10242 ]

                People

                • Votes:
                  3 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: