moodle/backup
Tim Hunt c248dee33c MDL-77625 question restore: fix restore of existing questions
Continuing from the last commit, the code to restore question
bank entries, versions and questions, was not taking note of
whether the first stage had indentified questions that did not
need to be restored. This is tricky, but the mapping can only be
worked out for questions, but in the backup file, the questions are
inside the question_bank_entries, and versions, so we encounter
those first.

Now, the code just saves the QBE and QV when it encounters them,
and then does all the processing when it gets to the question,
correctly taking note of whether each question should be restored or not.
In cases where a particular question does not need to be restored,
we still set up the corresponding mappings.
2024-09-17 16:16:26 +01:00
..
cc MDL-81634 core: Fix all implicitly defined nullables 2024-08-02 14:11:12 +08:00
controller MDL-81634 core: Fix all implicitly defined nullables 2024-08-02 14:11:12 +08:00
converter MDL-81634 core: Fix all implicitly defined nullables 2024-08-02 14:11:12 +08:00
moodle2 MDL-77625 question restore: fix restore of existing questions 2024-09-17 16:16:26 +01:00
tests MDL-81523 phpunit: Add all missing setUp/tearDown parent calls 2024-06-14 16:04:57 +02:00
util MDL-77625 question restore: fix pre-parsing of questions 2024-09-17 16:14:21 +01:00
backup.class.php MDL-81615 backup: Bump release to 4.5 2024-04-20 20:56:34 +08:00
backup.php MDL-67667 core: Deprecate and removal task blocking 2024-04-12 12:34:20 +08:00
backupfilesedit.php MDL-79915 backup: Improve the Restore main page 2023-11-29 09:19:46 +01:00
backupfilesedit_form.php MDL-76810 redirect handling: ensure return URLs are properly sanitised 2023-01-11 11:42:28 +08:00
copy.php MDL-79912 backup: Create Course reuse index page 2023-11-22 18:11:43 +01:00
copyprogress.php MDL-79912 backup: Create Course reuse index page 2023-11-22 18:11:43 +01:00
externallib.php MDL-69983 backup: Save async backups in correct area. 2023-07-06 12:12:19 +10:00
import.php MDL-79912 backup: Create Course reuse index page 2023-11-22 18:11:43 +01:00
log.php
restore.php MDL-67667 core: Deprecate and removal task blocking 2024-04-12 12:34:20 +08:00
restorefile.php MDL-79915 backup: Improve the Restore main page 2023-11-29 09:19:46 +01:00
restorefile_form.php MDL-79915 backup: Improve the Restore main page 2023-11-29 09:19:46 +01:00
upgrade.txt MDL-81125 core: Update upgrade.txt files to document new upgrade notes 2024-05-20 22:26:45 +08:00
view.php MDL-79912 backup: Create Course reuse index page 2023-11-22 18:11:43 +01:00