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

Assign user roles to cohort initials filter doesn't filter table of existing cohort role assignments

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • Hide
      1. Login as admin
      2. Navigate to Users > Permissions > Define roles in site administration
      3. Press Edit for the Manager role
      4. Under Context types where this role may be assigned select User and press Save changes
      5. Navigate to Users > Accounts > Cohorts > Add new cohort in site administration
      6. Create 9 new cohorts ("Cohort1" through "Cohort9") in the system context
      7. Navigate to Users > Accounts > Add a new user in site administration
      8. Create 6 new users with a mix of first/last name initials
      9. Navigate to Users > Permissions > Assign user roles to cohort in site administration
      10. In the Select users to assign role field select all your new users
      11. In the Select cohorts field select all your new cohorts
      12. Press Assign and Continue
      13. Press on some First name / Surname initials to filter the Existing cohort role assignments table
      14. Confirm table is filtered correctly
      15. Navigate away from the page
      16. Navigate back to Users > Permissions > Assign user roles to cohort in site administration
      17. Confirm same filtering is preserved
      Show
      Login as admin Navigate to Users > Permissions > Define roles in site administration Press Edit for the Manager role Under Context types where this role may be assigned select User and press Save changes Navigate to Users > Accounts > Cohorts > Add new cohort in site administration Create 9 new cohorts ("Cohort1" through "Cohort9") in the system context Navigate to Users > Accounts > Add a new user in site administration Create 6 new users with a mix of first/last name initials Navigate to Users > Permissions > Assign user roles to cohort in site administration In the Select users to assign role field select all your new users In the Select cohorts field select all your new cohorts Press Assign and Continue Press on some First name / Surname initials to filter the Existing cohort role assignments table Confirm table is filtered correctly Navigate away from the page Navigate back to Users > Permissions > Assign user roles to cohort in site administration Confirm same filtering is preserved

      Hi there,

      This was first identified on a Moodle 3.5.11 production site, which has since been cloned with the clone being updated to 3.6.9 then 3.8.2 to no avail. This has also been found on an entirely separate development Moodle running 3.8.2 on a different server so it doesn't seem particular to the production environment.

       

      To replicate:

       

      1. If you do not have a role which can be applied in the user context already, change an existing one or create a new one which can be applied in that context.
      2. If you do not already have cohorts to apply, create at least 10 test cohorts
      3. if you do not have users to assign to cohorts already, create 6 test users with different first names/lastnames with different initials.
      4. Go to Site administration -> Users -> Permissions -> Assign user roles to cohort. (Alternatively yourmoodlesite.com/admin/tool/cohortroles/index.php)
      5. Assign the test users to test cohorts until you have enough results on display to get the initials table at the top to appear.
      6. Try selecting different initials for either "First name" or "surname".
      7. You should find the URL will change according to what you have selected (e.g: ?tifirst=F) based on the users first names and surnames, however the table below will not change which results are displayed.

      Presumably the expected behaviour is for the table of entries to filter out entries which do not match the initials that are selected. This seems to work elsewhere where this initial table filter is used, such as on a course's enrolled users/participants page (Course Administration -> Users -> Enrolled users) or  when viewing all submissions to an assignment activity (Go to assignment activity -> View all submissions).

       

      Let me know if you need any more details regarding this or if you're unable to replicate.

            pholden Paul Holden
            sgodbehere Samuel Godbehere
            Sujith Haridasan Sujith Haridasan
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 45 minutes
                3h 45m

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