|
|
|
If I make a backup of a course and then restore that backup into another moodle site, the questions get assigned to a wrong person. Backup file (moodle.xml) includes the following info for each question:
<CREATEDBY>xyz</CREATEDBY>
<MODIFIEDBY>xyz</MODIFIEDBY>
where "xyz" is the id number of the user who created or modified the question. The problem is, if you restore the backup to another moodle site, user xyz is a totally different person (!)
I suggest that if a backup is restored to another site (it can easily be detected during the restore process by comparing <ORIGINAL_WWWROOT> from the moodle xml file to the current www root), both values (CREATEDBY and MODIFIEDBY) should be set to 0 (unknown) or 1 (admin user)
|
|
Description
|
If I make a backup of a course and then restore that backup into another moodle site, the questions get assigned to a wrong person. Backup file (moodle.xml) includes the following info for each question:
<CREATEDBY>xyz</CREATEDBY>
<MODIFIEDBY>xyz</MODIFIEDBY>
where "xyz" is the id number of the user who created or modified the question. The problem is, if you restore the backup to another moodle site, user xyz is a totally different person (!)
I suggest that if a backup is restored to another site (it can easily be detected during the restore process by comparing <ORIGINAL_WWWROOT> from the moodle xml file to the current www root), both values (CREATEDBY and MODIFIEDBY) should be set to 0 (unknown) or 1 (admin user) |
Show » |
tjhunt committed 10 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 20/Jan/09 12:16 PM
backup/restore: MDL-16614 more reliable test for when we are restoring a backup that was made of the same site that we are restoring to.
* Use this to fix a question restore bug.
* Replace older code that does something similar with the new test.
* Refactor initialisation of $CFG->siteidentifier into a function. There were about 4 copies of this code ;-)
|
|
|
tjhunt committed 10 files to 'Moodle CVS' - 20/Jan/09 12:16 PM
backup/restore: MDL-16614 more reliable test for when we are restoring a backup that was made of the same site that we are restoring to.
* Use this to fix a question restore bug.
* Replace older code that does something similar with the new test.
* Refactor initialisation of $CFG->siteidentifier into a function. There were about 4 copies of this code ;-)
|
|
|
committed 3 files to 'Lang CVS' - 23/Jan/09 01:33 AM
MDL-16614 Translated a new string for restoring backups.
MDL-17871 Translated new strings for question bank.
Brushed up translated strings fro LDAP enrollment.
|
|
|
martignoni committed 1 file to 'Lang CVS' - 24/Jan/09 04:46 AM
|