-
Bug
-
Resolution: Fixed
-
Minor
-
2.5.2, 2.6
-
None
-
2.5.3.5
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
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.