mirror of
https://github.com/moodle/moodle.git
synced 2025-01-21 07:28:31 +01:00
Now, the "edited" field is included in backup/restore too.
This commit is contained in:
parent
540fa20b31
commit
626aab5d67
@ -43,6 +43,7 @@
|
||||
fwrite ($bf,full_tag("NOTES",4,false,$attendance->notes));
|
||||
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$attendance->timemodified));
|
||||
fwrite ($bf,full_tag("DYNSECTION",4,false,$attendance->dynsection));
|
||||
fwrite ($bf,full_tag("EDITED",4,false,$attendance->edited));
|
||||
//if we've selected to backup users info, then execute backup_attendance_roll
|
||||
if ($preferences->mods["attendance"]->userinfo) {
|
||||
$status = backup_attendance_roll($bf,$preferences,$attendance->id);
|
||||
|
@ -47,6 +47,7 @@
|
||||
$attendance->notes = backup_todb($info['MOD']['#']['NOTES']['0']['#']);
|
||||
$attendance->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
|
||||
$attendance->dynsection = backup_todb($info['MOD']['#']['DYNSECTION']['0']['#']);
|
||||
$attendance->edited = backup_todb($info['MOD']['#']['EDITED']['0']['#']);
|
||||
|
||||
//The structure is equal to the db, so insert the attendance
|
||||
$newid = insert_record ("attendance",$attendance);
|
||||
|
Loading…
x
Reference in New Issue
Block a user