Moodle
  1. Moodle
  2. MDL-26903

use of undefined cm in navigationlib

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: Navigation
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      16891

      Description

      $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST);
      $modinfo = get_fast_modinfo($course);
      $cm = $modinfo->get_cm($this->instanceid);
      require_course_login($course, true, $cm);

        Activity

        Hide
        Petr Škoda added a comment -

        This looks like a serious problem, reassigning, this code if from global_navigation_for_ajax class.

        Show
        Petr Škoda added a comment - This looks like a serious problem, reassigning, this code if from global_navigation_for_ajax class.
        Hide
        Sam Hemelryk added a comment -

        Created PULL-501

        Show
        Sam Hemelryk added a comment - Created PULL-501
        Hide
        Helen Foster added a comment -

        Thanks Sam

        Show
        Helen Foster added a comment - Thanks Sam

          People

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

            Dates

            • Created:
              Updated:
              Resolved: