From 626aab5d67027533b4e82391b12d9d58b580ecbb Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 21 Sep 2003 20:45:46 +0000 Subject: [PATCH] Now, the "edited" field is included in backup/restore too. --- mod/attendance/backuplib.php | 1 + mod/attendance/restorelib.php | 1 + 2 files changed, 2 insertions(+) diff --git a/mod/attendance/backuplib.php b/mod/attendance/backuplib.php index 3fd1997aeb1..4c4323061a3 100644 --- a/mod/attendance/backuplib.php +++ b/mod/attendance/backuplib.php @@ -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); diff --git a/mod/attendance/restorelib.php b/mod/attendance/restorelib.php index e479e83241f..82a1dd4f686 100644 --- a/mod/attendance/restorelib.php +++ b/mod/attendance/restorelib.php @@ -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);