mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
![]() On contrary from a backup created in 2.0, the file gradebook.xml in the converted MBZ can contain the course grade_item without the corresponding grade_category record which is something restore_stepslib did not expect. This patch fixes two places: 1) the gradebook restore does not use mapped itemid but calls grade_category::fetch_course_category() to get the actual category to link the course_item with 2) after_execute makes sure that the mapping actually exists before trying to move the activities from the default root category |
||
---|---|---|
.. | ||
bb | ||
cc | ||
controller | ||
converter | ||
moodle2 | ||
util | ||
backup.class.php | ||
backup.php | ||
backup_scheduled.php | ||
backupfilesedit.php | ||
backupfilesedit_form.php | ||
backuplib.php | ||
import.php | ||
lib.php | ||
log.php | ||
restore.php | ||
restorefile.php | ||
restorefile_form.php | ||
restorelib.php |