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

enrol_get_plugin() requires lib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4, 3.2.1
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide
      1. Move enrol/manual/lib.php to enrol/manual/classes/plugin.php
      2. Run unit test vendor/bin/phpunit enrol_manual_lib_testcase enrol/manual/tests/lib_test.php
      3. Confirm that test passes with patch (and fails without)
      Show
      Move enrol/manual/lib.php to enrol/manual/classes/plugin.php Run unit test vendor/bin/phpunit enrol_manual_lib_testcase enrol/manual/tests/lib_test.php Confirm that test passes with patch (and fails without)
    • Workaround:
      Hide

      Create empty lib.php in your enrolment plugin.

      Show
      Create empty lib.php in your enrolment plugin.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:

      Description

      In MDL-44610 I created a patch that enables enrolment plugins classes to be loaded by autoloading (since the required class name is in the right format), but have just discovered that the enrol_get_plugin() function still requires the lib.php file to be present, so this patch is not complete.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                maherne Michael Aherne
                Reporter:
                maherne Michael Aherne
                Peer reviewer:
                Frédéric Massart
                Integrator:
                Dan Poltawski
                Tester:
                Jun Pataleta
                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:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/17