Internal: Avoid redirect to lp view when exercise is finished - refs BT#21752

pull/5563/head
christianbeeznst 1 year ago
parent 9d8dbace34
commit 2998ebdbc4
  1. 6
      public/main/exercise/exercise_result.php

@ -300,7 +300,11 @@ if (!in_array($origin, ['learnpath', 'embeddable', 'mobileapp'])) {
// Record the results in the learning path, using the SCORM interface (API)
$pageBottom .= "<script>window.parent.API.void_save_asset('$total_score', '$maxScore', 0, 'completed');</script>";
$pageBottom .= '<script type="text/javascript">'.$href.'</script>';
$courseId = isset($_REQUEST['cid']) ? (int) $_REQUEST['cid'] : api_get_course_int_id();
Exercise::saveExerciseInLp($learnpath_item_id, $exeId, $courseId);
//$pageBottom .= '<script type="text/javascript">'.$href.'</script>';
$showFooter = false;
}

Loading…
Cancel
Save