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

bulk enrolment actions fail when multiple instances of plugin present

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.6.6, 3.11
    • None
    • Enrolments
    • MOODLE_311_STABLE, MOODLE_36_STABLE
    • Hide

      Change the order of the enrolment methods in the course settings so that the method you want to unenrol people from is at the top of the list. Then just use any of the displayed bulk operation buttons (for the correct plugin). The bulk operation is executed for the first method in the list. If the first method is the correct one then the bulk operation succeeds.

      Show
      Change the order of the enrolment methods in the course settings so that the method you want to unenrol people from is at the top of the list. Then just use any of the displayed bulk operation buttons (for the correct plugin). The bulk operation is executed for the first method in the list. If the first method is the correct one then the bulk operation succeeds.

    Description

      Bulk enrolment actions (e.g. initiated from user/index.php) fail when multiple instances of the same plugin are present for a course. In our case, we have several different self-enrolment possibilities, and attempts to bulk-unenrol fail.

      The cause is that the "plugin" parameter being passed to enrol/action-redir.php is inadequate to describe the instance, and action-redir.php identifies and obtains a manager object for the wrong one, subsequently finding no matching userids and removing the specified users from the list upon which it should act.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nwpotago Nick Phillips
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: