moodle/backup/moodle2
Frederic Massart 98fed696dc MDL-45283 restore: Prevent failure when user course grade exists
When we restore a course, the grade that a user has for the
grade item of the course cannot be created twice. If we try
to create it when it already exists, a database exception is
raised because of index duplication.

The safest way to proceed is certainly to ignore the grade
information from the backup, otherwise we could potentially
overwrite existing information. Though, this only applies
to restore as merge, and it does not affect the update of
the course grade.
2014-04-30 12:09:13 +08:00
..
tests MDL-44070 Conditional availability - white space fix 2014-04-08 13:49:15 +08:00
backup_activity_task.class.php MDL-12403 backup: Ability to exclude question bank 2013-09-26 09:55:12 +08:00
backup_block_task.class.php MDL-34469 - lib - replacement of the deprecated get_context_instance and get_context_by_id functions (group 15) 2012-07-30 14:59:57 +08:00
backup_course_task.class.php MDL-43448 Links to the gradebook not fixed on restore. 2013-12-20 11:55:01 +00:00
backup_coursereport_plugin.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_custom_fields.php MDL-42815 Backup/restore: Error saving files - log messages unhelpful 2013-11-11 17:15:32 +00:00
backup_default_block_task.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_final_task.class.php MDL-38190 (2) Backup/restore: Progress tracking for tasks and steps 2013-08-16 10:50:36 +01:00
backup_format_plugin.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_gradingform_plugin.class.php MDL-30998: updated docblocks for backup of advanced grading 2013-01-14 15:14:54 +11:00
backup_local_plugin.class.php MDL-17444: Backup hooks for local plugin (CR) 2012-11-06 15:37:08 -08:00
backup_plagiarism_plugin.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_plan_builder.class.php MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
backup_plugin.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_qtype_plugin.class.php MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
backup_report_plugin.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_root_task.class.php MDL-12403 backup: Ability to exclude question bank 2013-09-26 09:55:12 +08:00
backup_section_task.class.php Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
backup_settingslib.php MDL-39558 badges: Add backup/restore to course badges 2013-07-03 09:35:06 +08:00
backup_stepslib.php MDL-45205 backup: avoid oracle incompatible query 2014-04-21 20:36:52 +08:00
backup_subplugin.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_theme_plugin.class.php MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
backup_xml_transformer.class.php MDL-42377 backup: fixed incorrect debugging message 2013-10-21 11:54:39 +08:00
restore_activity_task.class.php MDL-36777 usability: Theming fixes on backup steps 2012-11-30 16:53:39 +08:00
restore_block_task.class.php MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
restore_course_task.class.php Merge branch 'MDL-43460-master' of git://github.com/FMCorz/moodle 2014-01-14 13:25:44 +08:00
restore_coursereport_plugin.class.php MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
restore_default_block_task.class.php MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
restore_final_task.class.php MDL-44070 Conditional availability enhancements (4): backup 2014-04-07 20:11:41 +01:00
restore_format_plugin.class.php MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
restore_gradingform_plugin.class.php MDL-30998: updated docblocks for backup of advanced grading 2013-01-14 15:14:54 +11:00
restore_local_plugin.class.php MDL-17444: Backup hooks for local plugin (CR) 2012-11-06 15:37:08 -08:00
restore_plagiarism_plugin.class.php MDL-17444: Backup hooks for local plugin 2012-11-06 10:49:41 -08:00
restore_plan_builder.class.php MDL-42039 Restore: Add progress tracking in restore controller load 2013-10-10 10:57:24 +08:00
restore_plugin.class.php MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
restore_qtype_plugin.class.php MDL-40893 backup: cache question answers for performance 2013-08-16 10:06:13 +10:00
restore_report_plugin.class.php MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
restore_root_task.class.php MDL-39558 badges: Add backup/restore of manually awarded badges 2013-07-03 09:36:45 +08:00
restore_section_task.class.php MDL-34612 Restore: Gracefully handle empty section title while restoring 2013-10-22 09:47:42 +08:00
restore_settingslib.php MDL-39558 badges: Add backup/restore to course badges 2013-07-03 09:35:06 +08:00
restore_stepslib.php MDL-45283 restore: Prevent failure when user course grade exists 2014-04-30 12:09:13 +08:00
restore_subplugin.class.php MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
restore_theme_plugin.class.php MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00