Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4743

Use default value of layoutcolumnorientation if not set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.2, 2.6
    • Fix Version/s: 2.5.3, 2.6
    • Component/s: Course format: Topcoll
    • Labels:
      None

      Description

      If layoutcolumnorientation is not set properly (course has been restored from Moodle 2.3 or otherwise, in which case it's set to 0 in the DB), use the default value when rendering the course.

      Steps to reproduce the issue:
      1. Have a topcoll course with 2 columns layout in Moodle 2.3.
      2. Backup the course and restore in Moodle 2.5.
      3. View the course and observe it's displayed in 1 column layout. See that in the DB, course_format_options table, the 'layoutcolumnorientation' field value for the course is 0.
      4. Click Edit course settings, do not change anything, just Save.
      5. View the course and observe it's displayed in 2 column layout now.

        Attachments

          Activity

            People

            Assignee:
            gb2048 Gareth J Barnard
            Reporter:
            badblock Kirill Astashov
            Participants:
            Component watchers:
            Gareth J Barnard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Nov/13