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

Only show bulk enrolment methods from plugins added to the course

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: User management
    • Labels:
    • Testing Instructions:
      Hide

      Copy the get_bulk_operations method from enrol/manual/lib.php to enrol/self/lib.php.

       

      Enable the self enrolment plugin at the site level, but delete it from a course. 

      Go to the participants page in the course (as admin).

      Verify the list of actions in the "With selected users" dropdown DOES NOT say:

      "Self enrolment" anywhere and there are no duplicated options.

      Add the self enrolment plugin to the course but make it disabled.

      Go to the participants page in the course (as admin).

      Verify the list of actions in the "With selected users" dropdown DOES say:

      "Self enrolment" and there are duplicated options for edit and delete enrolments.

          

      Show
      Copy the get_bulk_operations method from enrol/manual/lib.php to enrol/self/lib.php.   Enable the self enrolment plugin at the site level, but delete it from a course.  Go to the participants page in the course (as admin). Verify the list of actions in the "With selected users" dropdown DOES NOT say: "Self enrolment" anywhere and there are no duplicated options. Add the self enrolment plugin to the course but make it disabled. Go to the participants page in the course (as admin). Verify the list of actions in the "With selected users" dropdown DOES say: "Self enrolment" and there are duplicated options for edit and delete enrolments.     
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59823-master

      Description

      We are currently showing bulk enrolment actions from any enabled enrolment plugin, but we should only show actions from enrolment methods that have been added to the course (have an instance). 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              damyon Damyon Wiese
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Ryan Wyllie
              Integrator:
              Jun Pataleta
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17