diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index 489a1ad8e7..0da4d445aa 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -2902,6 +2902,7 @@ class Exercise // User $showEndWarning = 0; if (api_is_allowed_to_session_edit()) { + $addInvisibleNextButton = false; if ($this->type == ALL_ON_ONE_PAGE || $nbrQuestions == $questionNum) { if ($this->review_answers) { //$label = get_lang('ReviewQuestions'); @@ -2912,6 +2913,7 @@ class Exercise $label = get_lang('EndTest'); $class = 'btn btn-warning'; } + $addInvisibleNextButton = true; $showEndWarning = 1; } else { $label = get_lang('NextQuestion'); @@ -2931,12 +2933,22 @@ class Exercise } else { $all_button .= ' '.$label.''; } + + if ($addInvisibleNextButton) { + $all_button .= ' + + .. + '; + } + $all_button .= ' '; $all_button .= "