Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.6
-
MOODLE_26_STABLE
Description
An Assignment activity which uses a custom scale, when backed up and restored to a new course, it generates the following error message:
Did you remember to make the first column something unique in your call to get_records? Duplicate value 'server.xyz+110517111136+s8n0Dl server.xyz+110517111136+ysBliJ' found in column 'concat(stamp, ' ', version)'.
|
|
line 1005 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
|
line 1334 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
|
line 620 of /backup/util/dbops/restore_dbops.class.php: call to moodle_database->get_records_sql_menu()
|
line 484 of /backup/util/dbops/restore_dbops.class.php: call to restore_dbops::prechek_precheck_qbanks_by_level()
|
line 135 of /backup/util/helper/restore_prechecks_helper.class.php: call to restore_dbops::precheck_categories_and_questions()
|
line 366 of /backup/controller/restore_controller.class.php: call to restore_prechecks_helper::execute_prechecks()
|
line 638 of /backup/util/ui/restore_ui_stage.class.php: call to restore_controller->execute_precheck()
|
line 284 of /backup/util/ui/restore_ui.class.php: call to restore_ui_stage_process->process()
|
line 60 of /backup/restore.php: call to restore_ui->requires_substage()
|
Steps to Reproduce:
1. Create a custom scale in a course;
2. Create an Assignment activity in the course which uses that custom scale.
3. Backup that course and restore it to a new course.
The above error occurs.
Attachments
Issue Links
- Testing discovered
-
MDL-40214 Custom Scale does not restore when associated with Assignments.
-
- Closed
-