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

adding a lesson to the front page produces 'Trying to get property of non-object'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1
    • Component/s: Lesson
    • Labels:
      None
    • Environment:
      Moodle 1.8 + (2007021503)
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Failed to add a lesson to the front page. Offending line is in mod\lesson\mod_form.php 248:

      if ($this->_cm->id != $mod->id)

      I can't any references to the _cm variable so that may be a starting point.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jun/07