Skip to content

Commit

Permalink
Exercises: LP doesn't block an exercise page, the exercise should be
Browse files Browse the repository at this point in the history
responsible to block the results page

WIP: BT#18295
  • Loading branch information
jmontoyaa committed Jan 18, 2021
1 parent 05a9d80 commit 28508f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/lp/lp_view.php
Expand Up @@ -349,14 +349,14 @@
if (!empty($safe_id) && !empty($safe_item_id)) {
Exercise::saveExerciseInLp($safe_item_id, $safe_exe_id);
}
if (intval($_GET['fb_type']) != EXERCISE_FEEDBACK_TYPE_END) {
/*if (intval($_GET['fb_type']) != EXERCISE_FEEDBACK_TYPE_END) {
$src = 'blank.php?msg=exerciseFinished&'.api_get_cidreq(true, true, 'learnpath');
} else {
} else {*/
$src = api_get_path(WEB_CODE_PATH).'exercise/result.php?id='.$safe_exe_id.'&'.api_get_cidreq(true, true, 'learnpath');
if ($debug) {
error_log('Calling URL: '.$src);
}
}
//}
$autostart = 'false';
}

Expand Down

0 comments on commit 28508f8

Please sign in to comment.