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

$sectionreturn parameter effectively ignored in course/lib.php get_module_metadata()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.6.6, 2.6.7, 2.7.4, 2.8
    • Course

      This I think has been caused by MDL-36878.

      We have a 2 semester format (that renders by skipping alternate sections) starting at topic 1.

      This is calling {[course_section_add_cm_control($course, $realsectionnum, $realsectionnum)}} function to render the tools to add new items (it also disables Javascript for other reason).

      This in turn calls get_module_metadata().but since we've already called it for topic 0, the static variable $modlist has already been filled with the module information, which means the $sr value of the doesn't get up dated.

      This means the drop down lists are always created with an sr=0 parameter.

      This primarily affects multi-page course formats I guess...

            Unassigned Unassigned
            mhughes2k Michael Hughes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.