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

Incorrect roles sort order on enrolled users screen

    XMLWordPrintable

Details

    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • master_MDL-51401
    • Hide
      1. Login as an admin, change and then note the order of roles in /admin/roles/manage.php
      2. Go to the "Enrolled Users" page (/enrol/users.php?id=<courseid>) and click on the "Enrol Users" button. You should see a dropdown with the roles listed in the correct order.
      3. On the same page, click on the "Assign Roles" icon/link next to an enrolled user. In the popup you should see the available roles displayed in the correct order.
      4. Go to the "Other users" page (/enrol/otherusers.php?id=<courseid>) and click on "Assign Roles". The roles listed beside the users should appear in the correct order.
      5. Go back to the roles manage page and change the order of the roles (Site administration ► Users ► Permissions ► Define roles), then repeat steps 2,3,4 and ensure the the roles appear in the updated order.
      Show
      Login as an admin, change and then note the order of roles in /admin/roles/manage.php Go to the "Enrolled Users" page (/enrol/users.php?id=<courseid>) and click on the "Enrol Users" button. You should see a dropdown with the roles listed in the correct order. On the same page, click on the "Assign Roles" icon/link next to an enrolled user. In the popup you should see the available roles displayed in the correct order. Go to the "Other users" page (/enrol/otherusers.php?id=<courseid>) and click on "Assign Roles". The roles listed beside the users should appear in the correct order. Go back to the roles manage page and change the order of the roles (Site administration ► Users ► Permissions ► Define roles), then repeat steps 2,3,4 and ensure the the roles appear in the updated order.

    Description

      Case 1:

      Steps to reproduce:

      • Login as teacher
      • Go to any course
      • Go to course administration -> Users -> Enrolled users (/enrol/users.php?id=<COURSE-ID>)
      • Click on the plus-sign in the roles column of the users' table

      Expected result:

      • The roles in the popup should be sorted in the order which was defined on /admin/roles/manage.php

      Actual result:

      • The roles in the popup have some other order

      -------------------

      Case 2:

      Steps to reproduce:

      • Login as teacher
      • Go to any course
      • Go to course administration -> Users -> Enrolled users (/enrol/users.php?id=<COURSE-ID>)
      • Click on the "Enrol users" button

      Expected result:

      • The roles in the dropdown widget in the popup should be sorted in the order which was defined on /admin/roles/manage.php

      Actual result:

      • The roles in the popup have some other order

      -------------------

      Note:

      • On the "old" enrol interface (/enrol/manual/manage.php?enrolid=14440&id=<COURSE-ID>), the roles in the "Assign role" dropdown are sorted like it is expected.

      Attachments

        Activity

          People

            janeklb Janek L.B.
            abias Alexander Bias
            Adrian Greeve Adrian Greeve
            David Monllaó David Monllaó
            Jake Dallimore Jake Dallimore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.