mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-10574 Backup and restore event table modulename column
This commit is contained in:
parent
850e7ac564
commit
1d5bdcd2e4
@ -1696,6 +1696,7 @@
|
||||
fwrite ($bf,full_tag("USERID",4,false,$event->userid));
|
||||
fwrite ($bf,full_tag("REPEATID",4,false,$event->repeatid));
|
||||
fwrite ($bf,full_tag("EVENTTYPE",4,false,$event->eventtype));
|
||||
fwrite ($bf,full_tag("MODULENAME",4,false,$event->modulename));
|
||||
fwrite ($bf,full_tag("TIMESTART",4,false,$event->timestart));
|
||||
fwrite ($bf,full_tag("TIMEDURATION",4,false,$event->timeduration));
|
||||
fwrite ($bf,full_tag("VISIBLE",4,false,$event->visible));
|
||||
|
@ -2602,6 +2602,9 @@
|
||||
$eve->userid = backup_todb($info['EVENT']['#']['USERID']['0']['#']);
|
||||
$eve->repeatid = backup_todb($info['EVENT']['#']['REPEATID']['0']['#']);
|
||||
$eve->modulename = "";
|
||||
if (!empty($info['EVENT']['#']['MODULENAME'])) {
|
||||
$eve->modulename = backup_todb($info['EVENT']['#']['MODULENAME']['0']['#']);
|
||||
}
|
||||
$eve->instance = 0;
|
||||
$eve->eventtype = backup_todb($info['EVENT']['#']['EVENTTYPE']['0']['#']);
|
||||
$eve->timestart = backup_todb($info['EVENT']['#']['TIMESTART']['0']['#']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user