diff --git a/mod/chat/restorelib.php b/mod/chat/restorelib.php index 30f6cde2690..52192bc56f6 100644 --- a/mod/chat/restorelib.php +++ b/mod/chat/restorelib.php @@ -175,6 +175,17 @@ $log->url = "index.php?id=".$log->course; $status = true; break; + case "report": + 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 = "report.php?id=".$log->cmid; + $log->info = $mod->new_id; + $status = true; + } + } + break; default: echo "action (".$log->module."-".$log->action.") unknow. Not restored
"; //Debug break;