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

PHP notice regarding undefined property displayed when editing a lesson

    XMLWordPrintable

    Details

    • Story Points:
      5
    • Sprint:
      BACKEND Sprint 6

      Description

      1. Add a lesson to a course.
      2. Click to edit this lesson.
      3. You will get a PHP notice "Notice: Undefined property: stdClass::$version in /var/www/mstorage/sm/moodle/mod/lesson/mod_form.php on line 321" displaying.

      It seems the global $module variable no longer stores the version.

      This check seems really unnecessary as we know the module version is not going to be less than what is stated. I am just removing it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              markn Mark Nelson
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Marina Glancy
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Nov/13