Now chat-talk log actions are restored properly.

Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)

Merged from MOODLE_15_STABLE
This commit is contained in:
stronk7 2005-08-03 18:28:56 +00:00
parent 82633a2915
commit fcd01e4571

View File

@ -264,6 +264,17 @@
}
}
break;
case "talk":
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)