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

Undefined property $competencies when competencies are disabled

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Use Clean (because of MDL-57065)
      2. Navigate to Site administration ► Competencies ► Competency settings.
      3. Uncheck Enable competencies.
      4. Click Save changes.
      5. Navigate to a course.
      6. Confirm that there aren't any notices displayed
      Show
      Use Clean (because of MDL-57065 ) Navigate to Site administration ► Competencies ► Competency settings. Uncheck Enable competencies. Click Save changes. Navigate to a course. Confirm that there aren't any notices displayed
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57064-master

      Description

      1. Navigate to Site administration ► Competencies ► Competency settings.
      2. Uncheck Enable competencies.
      3. Click Save changes.
      4. Navigate to a course.

      Expected

      • There aren't any notices or error messages.

      Actual

      • A wild notice appears:

        Notice: Undefined property: stdClass::$competencies in /home/fred/moodles/im/moodle/lib/navigationlib.php on line 2694
        

      Note, you won't see the notice in Boost because of MDL-57065.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Jun Pataleta
              Integrator:
              Dan Poltawski
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/16