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

Logged-in admin user listed as 'removed from selection' when deleting course enrolments

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-82663-403
    • MDL-82663-404
    • Hide
      1. Log in as admin
      2. Create a new user
      3. Create a course
      4. Enrol user in course as a student
      5. From participants list, select your test user
      6. Open the With selected users element
      7. Select Manual enrolments > Delete selected user enrolments
      8. Confirm you don't see a message that the admin user was removed from selection
      9. Press Cancel
      10. From participants list, select your test user and admin user (yourself)
      11. Select Delete selected user enrolments again
      12. Confirm you see the following message, and admin isn't listed in subsequent table:

        User "Admin User" was removed from the selection. 
        

      13. Press Unenrol users
      14. Confirm you see the following message:

        1 unenrolled users
        

      15. Confirm you don't see a message that the admin user was removed from selection (this was a side effect of the current bug)
      Show
      Log in as admin Create a new user Create a course Enrol user in course as a student From participants list, select your test user Open the With selected users element Select Manual enrolments > Delete selected user enrolments Confirm you don't see a message that the admin user was removed from selection Press Cancel From participants list, select your test user and admin user (yourself) Select Delete selected user enrolments again Confirm you see the following message, and admin isn't listed in subsequent table: User "Admin User" was removed from the selection. Press Unenrol users Confirm you see the following message: 1 unenrolled users Confirm you don't see a message that the admin user was removed from selection (this was a side effect of the current bug)

      Description:

      When selecting users from the Participants page to delete their course enrollments, the user is presented with a confirmation screen listing the users whose enrollment will be deleted. At the top of this page a message appears:

      User "<insert logged in admin's fullname>" was removed from the selection. 

      This is despite the fact that the logged in admin user does not have an enrollment record in the course and thus cannot actually be selected.

       

      Steps to replicate:

      1. Access a test course
      2. Ensure there is at least one user enrolled in the course via Manual enrolments who isn't the admin currently logged in
      3. Go to the Participants>Enrolled users page
      4. Check the box next to the user's enrollment
      5. Click 'With selected users...' and select 'Delete selected user enrolments' (under Manual enrolments)
      6. Observe the confirmation screen that appears (/user/action_redir.php)

       

      Observed result:

      A message appears at the top of the page for the logged in admin user, who does not have an enrolment record in the course:

      'User "<insert fullname of logged in admin>" was removed from the selection.'

       

      Expected result:

      No message appears for the logged-in admin, unless they have an enrolment record in the course.

       

      Other notes:

      This is cosmetic but may confuse administrators slightly. The functionality to delete user enrolments seems to work as expected otherwise.

            pholden Paul Holden
            prankin Phillip Rankin
            Stevani Andolo Stevani Andolo
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 2 hours, 52 minutes
                3d 2h 52m

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