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

get_format_options function uses wrong columnname

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.6, 2.5.2, 2.6
    • Fix Version/s: 2.4.8, 2.5.4
    • Component/s: Course
    • Labels:

      Description

      The get_format_options function of the course format library refers to the column 'courseid'. However this column does not exist in the table course_sections. It should be 'course'.

      course/format/lib.php line 575

      --array('section' => $section, 'courseid' => $this->courseid), 'id')))
      ++array('section' => $section, 'course' => $this->courseid), 'id')))
      

      Additional course formats like grid and masonry depend heavily on this function.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Jan/14