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

use of undefined cm in navigationlib

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

      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);

        Gliffy Diagrams

          Activity

          Hide
          skodak Petr Skoda added a comment -

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

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

          Created PULL-501

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

          Thanks Sam

          Show
          tsala Helen Foster added a comment - Thanks Sam

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/May/11