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

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

                Dates

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