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

bulk enrolment actions fail when multiple instances of plugin present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.6
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
    • Workaround:
      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.
    • Affected Branches:
      MOODLE_36_STABLE

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            nwpotago Nick Phillips
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: