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

MDL-31006 changes introduce mentions of the new-in-2.2 context_system class in 2.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.4
    • Fix Version/s: 2.1.5
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      This is one recent regression to test in 21_STABLE only:

      1) log as admin
      2) go to admin->plugins->Manage enrol plugins
      3) try to show/hide, move up/down some plugins
      4) it works as expected, the "Fatal error: Class 'context_system'" error does not happen anymore.

      Show
      This is one recent regression to test in 21_STABLE only: 1) log as admin 2) go to admin->plugins->Manage enrol plugins 3) try to show/hide, move up/down some plugins 4) it works as expected, the "Fatal error: Class 'context_system'" error does not happen anymore.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:

      Description

      See http://moodle.org/mod/forum/discuss.php?d=194417 and https://github.com/moodle/moodle/blob/master/admin/enrol.php#L34

      Someone needs to review all the MDL-31006 changes ASAP to make sure there are not more instances like this.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              timhunt Tim Hunt added a comment -
              Show
              timhunt Tim Hunt added a comment - Obviously https://github.com/moodle/moodle/blob/MOODLE_21_STABLE/admin/enrol.php#L34 is a more significant git link!
              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment - - edited

              My fault!

              I backported the original issue (MDL-31006) to 21_STABLE and, while I reviewed all the rest of uses/changes, I missed that completely!

              Sending fix to integration...ciao

              PS: Note, I've checked that there are no more context_xxxx::instance() uses in 21_STABLE, and also that MDL-31006 did not introduce any other unsupported API change.

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - - edited My fault! I backported the original issue ( MDL-31006 ) to 21_STABLE and, while I reviewed all the rest of uses/changes, I missed that completely! Sending fix to integration...ciao PS: Note, I've checked that there are no more context_xxxx::instance() uses in 21_STABLE, and also that MDL-31006 did not introduce any other unsupported API change.
              Hide
              mick291 Mickel Smith added a comment -

              I've applied the fix to my Moodle and it now works, thanks for the assistance.

              Show
              mick291 Mickel Smith added a comment - I've applied the fix to my Moodle and it now works, thanks for the assistance.
              Hide
              samhemelryk Sam Hemelryk added a comment -

              Thanks Eloy - this has been integrated now

              Show
              samhemelryk Sam Hemelryk added a comment - Thanks Eloy - this has been integrated now
              Hide
              gerry Gerard Caulfield added a comment -

              Problem observed on production 2.1 and fixed in integration 2.1

              Test passed

              thumbs up

              Show
              gerry Gerard Caulfield added a comment - Problem observed on production 2.1 and fixed in integration 2.1 Test passed thumbs up
              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment -

              Your nice code represents only 1/46 of the issues that have been sent upstream this week, so thanks, but not many.

              Nah, joking, many thanks! Closing this a fixed, ciao

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - Your nice code represents only 1/46 of the issues that have been sent upstream this week, so thanks, but not many. Nah, joking, many thanks! Closing this a fixed, ciao

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Mar/12