Fix exercise description appearing multiple time in multiple-question-per-page mode - refs #8125

1.10.x
Yannick Warnier 10 years ago
parent 08307e8b5b
commit 48c47f54c5
  1. 4
      main/exercice/exercise_submit.php

@ -1095,8 +1095,9 @@ if (!empty($error)) {
$remind_highlight = ' remind_highlight ';
}
// Showing the question
// Showing the exercise description
if (!empty($objExercise->description)){
if ($objExercise->type == ONE_PER_PAGE || ($objExercise->type != ONE_PER_PAGE && $i==1)) {
//echo Display::panel($objExercise->description, get_lang('ExerciseDescriptionLabel'));
echo Display::panelCollapse('<span>' .
get_lang('ExerciseDescriptionLabel') . '</span>',
@ -1109,6 +1110,7 @@ if (!empty($error)) {
true
);
}
}
echo '<div id="question_div_'.$questionId.'" class="main-question '.$remind_highlight.'" >';

Loading…
Cancel
Save