moodle/backup
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
..
cc MDL-41198 lib: Allow PHP to generate random seed on script start 2013-12-18 16:45:33 +11:00
controller MDL-44141 Completion: System updates data during restore 2014-03-18 13:31:34 +00:00
converter MDL-44070 Conditional availability enhancements (4): backup 2014-04-07 20:11:41 +01:00
moodle2 MDL-45283 restore: Prevent failure when user course grade exists 2014-04-30 12:09:13 +08:00
util Merge branch 'MDL-44468_master' of git://github.com/ds125v/moodle 2014-04-18 15:27:41 +08:00
backup.class.php MDL-42929 backup: keep own version & release updated. 2013-11-17 02:32:43 +01:00
backup.php MDL-41754 (1) Progress tracking : moved from backup and restore to core 2014-01-27 17:45:50 +07:00
backupfilesedit.php MDL-35991 - use PARAM_LOCALURL for local urls 2013-01-07 10:09:20 +08:00
backupfilesedit_form.php MDL-40816 backup: code cleanup on the manage backups form 2013-07-22 18:15:07 +08:00
import.php Merge branch 'MDL-41644' of git://github.com/apsdehal/moodle 2014-02-12 09:24:06 +13:00
log.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
restore.php MDL-42317 output: reviewed standard/base layouts and converted where a better option was available 2014-04-06 15:57:32 +12:00
restorefile.php MDL-43526 course: links to restore from management and admin structure. 2014-01-07 12:08:34 +08:00
restorefile_form.php MDL-38735 backup: add missing setType() to forms 2013-04-03 02:17:40 +02:00
upgrade.txt MDL-40618 backup: centralize info field, use info in queries. 2013-07-23 19:50:53 +10:00