moodle/backup
Mark Johnson fa4223fa95
MDL-85556 backup: Only update question refs in restored course
The previous query updated all question references matching the original
question bank entry, regardless of whether they were part of the restore
or not. When we are dealing with duplicated questions, this means we
could accidentally change question references in the backed-up course as
well as the restored one.

This change filters the references to ensure they exist in a context
within the restored course, before updating them.
2025-06-02 15:54:10 +01:00
..
cc Merge branch 'MDL-84267' of https://github.com/paulholden/moodle 2025-03-04 12:18:13 +08:00
controller MDL-81520 core: Fix test finality 2024-12-11 12:30:23 +08:00
converter MDL-81520 core: Fix test finality 2024-12-11 12:30:23 +08:00
moodle2 MDL-85556 backup: Only update question refs in restored course 2025-06-02 15:54:10 +01:00
tests Merge branch 'mdl-83479-restore-hooks' of https://github.com/jaypha/moodle 2025-04-01 09:51:51 +07:00
util MDL-85157 theme_boost: Clean table SCSS styles 2025-05-09 13:46:51 +02:00
backup.class.php MDL-85186 backup: Bump release to 5.1 2025-04-13 18:31:09 +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-81759 backup: Change import page layout 2025-02-10 09:54:19 +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-83695 backup: Add space before course Restores in progress heading 2025-02-05 00:19:13 +13: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