Exam's tag jump to task.php instead of messages.php when the exam type is task

This commit is contained in:
tdh
2025-03-17 17:48:00 +08:00
parent a7ff258802
commit 06b1f855fb

View File

@@ -2910,7 +2910,7 @@ if ($msgalert)
$exam = new \Nexus\Exam\Exam();
$currentExam = $exam->getCurrent($CURUSER['id']);
if (!empty($currentExam['html'])) {
msgalert("messages.php", $currentExam['html'], $currentExam['exam']->background_color ?? 'blue');
msgalert($currentExam['exam']->type==\App\Models\Exam::TYPE_TASK ? "task.php" : "messages.php", $currentExam['html'], $currentExam['exam']->background_color ?? 'blue');
}
}
if ($offlinemsg)