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

get_format_options function uses wrong columnname

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.6, 2.5.2, 2.6
    • 2.4.8, 2.5.4
    • Course

    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.

      Attachments

        Activity

          People

            rajeshtaneja Rajesh Taneja
            rdebleu Renaat Debleu
            Marina Glancy Marina Glancy
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/Jan/14