Fix exercises form buttons

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent dece622dd2
commit b466af9102
  1. 2
      main/exercice/multiple_answer_true_false.class.php
  2. 6
      main/exercice/unique_answer_no_option.class.php

@ -229,7 +229,7 @@ class MultipleAnswerTrueFalse extends Question
// setting the save button here and not in the question class.php
$buttonGroup[] = $form->addButtonDelete(get_lang('LessAnswer'), 'lessAnswers', true);
$buttonGroup[] = $form->addButtonCreate(get_lang('PlusAnswer'), 'moreAnswers', true);
$buttonGroup[] = $form->addButtonSave($text, 'SubmitQuestion', true);
$buttonGroup[] = $form->addButtonSave($text, 'submitQuestion', true);
}
$form->addGroup($buttonGroup);

@ -268,9 +268,9 @@ class UniqueAnswerNoOption extends Question
$buttonGroup[] = $form->createElement('submit', 'submitQuestion', $text, 'class="' . $class . '"');
} else {
//setting the save button here and not in the question class.php
$buttonGroup[] = $form->addButtonDelete('lessAnswers', get_lang('LessAnswer'), true);
$buttonGroup[] = $form->addButtonCreate( 'moreAnswers', get_lang('PlusAnswer'), true);
$buttonGroup[] = $form->addButtonSave('submitQuestion', $text, true);
$buttonGroup[] = $form->addButtonDelete(get_lang('LessAnswer'), 'lessAnswers', true);
$buttonGroup[] = $form->addButtonCreate(get_lang('PlusAnswer'), 'moreAnswers', true);
$buttonGroup[] = $form->addButtonSave($text, 'submitQuestion', true);
}
$form->addGroup($buttonGroup);

Loading…
Cancel
Save