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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Quiz
    • Labels:
      None
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      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

            Assignee:
            timhunt Tim Hunt
            Reporter:
            poltawski Dan Poltawski
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Dongsheng Cai, 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:
              Fix Release Date:
              3/Mar/08