-
Bug
-
Resolution: Fixed
-
Minor
-
3.3, 3.3 regressions
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE
-
MDL-59076_master -
When restoring a course backed up by a previous version of Moodle, Moodle 3.3 throws exceptions in the file restore_format_weeks_plugin.class.php due to the absence of a course end date in the backup file. The exceptions aren't displayed in the web page but appear in the apache error log file.
Steps to repeat:
- In Moodle 3.3, as an administrator, restore a course backup created in a previous version of Moodle (3.0 or 3.1 are known to fail - I'm not sure about 3.2).
- Check the apache error log.
The full error traceback is the following (as generated by running the phpunit tests in the CodeRunner plugin, qtype_coderunner_restore_testcase::test_restore)
Undefined index: enddate
/var/www/html/moodle/course/format/weeks/backup/moodle2/restore_format_weeks_plugin.class.php:166
/var/www/html/moodle/backup/moodle2/restore_plugin.class.php:101
/var/www/html/moodle/backup/util/plan/restore_structure_step.class.php:446
/var/www/html/moodle/backup/util/plan/restore_task.class.php:106
/var/www/html/moodle/backup/util/plan/restore_plan.class.php:204
/var/www/html/moodle/backup/moodle2/restore_final_task.class.php:121
/var/www/html/moodle/backup/moodle2/restore_stepslib.php:821
/var/www/html/moodle/backup/util/plan/restore_execution_step.class.php:34
/var/www/html/moodle/backup/util/plan/base_task.class.php:181
/var/www/html/moodle/backup/util/plan/base_plan.class.php:178
/var/www/html/moodle/backup/util/plan/restore_plan.class.php:167
/var/www/html/moodle/backup/controller/restore_controller.class.php:339
/var/www/html/moodle/question/type/coderunner/tests/restore_test.php:78
/var/www/html/moodle/question/type/coderunner/tests/restore_test.php:105
/var/www/html/moodle/lib/phpunit/classes/advanced_testcase.php:80
- is a regression caused by
-
MDL-56251 Course in "Weeks" format can suggest the course end date automatically
- Closed