Issue Details (XML | Word | Printable)

Key: MDL-16614
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Tim Hunt
Reporter: Przemyslaw Stencel
Votes: 0
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

createdby and modifiedby assigned to wrong people when course restored to another site

Created: 23/Sep/08 01:06 AM   Updated: 20/Jan/09 12:16 PM
Return to search
Component/s: Backup, Questions
Affects Version/s: 1.9.2
Fix Version/s: 1.9.4

File Attachments: 1. Text File backupsamesite.patch.txt (15 kB)
2. Text File backupsamesite.patch.txt (15 kB)
3. Text File questioncreatormodifierrestore.patch.txt (2 kB)

Issue Links:
Duplicate
 

Database: Any
Participants: Eloy Lafuente (stronk7), Martin Dougiamas, Przemyslaw Stencel and Tim Hunt
Security Level: None
Resolved date: 20/Jan/09
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
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)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Eloy Lafuente (stronk7) made changes - 24/Sep/08 08:09 AM
Field Original Value New Value
Assignee Eloy Lafuente (stronk7) [ stronk7 ] Tim Hunt [ timhunt ]
Tim Hunt made changes - 15/Jan/09 01:41 AM
Fix Version/s 1.9.4 [ 10300 ]
Tim Hunt made changes - 15/Jan/09 02:37 PM
Link This issue is duplicated by MDL-17636 [ MDL-17636 ]
Tim Hunt made changes - 15/Jan/09 02:40 PM
Tim Hunt made changes - 19/Jan/09 01:16 PM
Attachment backupsamesite.patch.txt [ 16085 ]
Tim Hunt made changes - 19/Jan/09 06:48 PM
Attachment backupsamesite.patch.txt [ 16089 ]
Tim Hunt made changes - 20/Jan/09 12:16 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]