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

page_generic_activity->init_full() does not use get_coursemodule_from_instance(), which causes build_navigation() debug warnings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9
    • 1.9
    • Quiz
    • None
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      Just upgraded a site from 1.8 and there are debug warnings displayed on the quiz view page when I view it as an administrator:

      The field $cm->modname should be set if you call build_navigation with a $cm parameter. If you get $cm using get_coursemodule_from_instance or

      • line 3616 of lib/weblib.php: call to debugging()
      • line 665 of lib/pagelib.php: call to build_navigation()
      • line 61 of mod/quiz/view.php: call to page_generic_activity->print_header()

      The field $cm->name should be set if you call build_navigation with a $cm parameter. If you get $cm using get_coursemodule_from_instance or

      • line 3624 of lib/weblib.php: call to debugging()
      • line 665 of lib/pagelib.php: call to build_navigation()
      • line 61 of mod/quiz/view.php: call to page_generic_activity->print_header()

      Attachments

        Activity

          People

            timhunt Tim Hunt
            poltawski Dan Poltawski
            Nobody Nobody
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3/Mar/08