From: stronk7 Date: Tue, 17 Feb 2004 16:19:58 +0000 (+0000) Subject: Added support for "choose" and "choose again" action logs. :-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=40c287b095ff72a9a53a7e1792b8f2f4e3748e3d;p=moodle.git Added support for "choose" and "choose again" action logs. :-) --- diff --git a/mod/choice/restorelib.php b/mod/choice/restorelib.php index ddca3f52d2..c817bf5005 100644 --- a/mod/choice/restorelib.php +++ b/mod/choice/restorelib.php @@ -169,6 +169,28 @@ } } break; + case "choose": + if ($log->cmid) { + //Get the new_id of the module (to recode the info field) + $mod = backup_getid($restore->backup_unique_code,$log->module,$log->info); + if ($mod) { + $log->url = "view.php?id=".$log->cmid; + $log->info = $mod->new_id; + $status = true; + } + } + break; + case "choose again": + if ($log->cmid) { + //Get the new_id of the module (to recode the info field) + $mod = backup_getid($restore->backup_unique_code,$log->module,$log->info); + if ($mod) { + $log->url = "view.php?id=".$log->cmid; + $log->info = $mod->new_id; + $status = true; + } + } + break; case "view": if ($log->cmid) { //Get the new_id of the module (to recode the info field)