From b466af9102ec97836069d90de12e76acbff24777 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 23 Mar 2015 14:20:04 -0500 Subject: [PATCH] Fix exercises form buttons --- main/exercice/multiple_answer_true_false.class.php | 2 +- main/exercice/unique_answer_no_option.class.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/exercice/multiple_answer_true_false.class.php b/main/exercice/multiple_answer_true_false.class.php index f6864e41e1..6bff0220b4 100755 --- a/main/exercice/multiple_answer_true_false.class.php +++ b/main/exercice/multiple_answer_true_false.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); diff --git a/main/exercice/unique_answer_no_option.class.php b/main/exercice/unique_answer_no_option.class.php index 586707cb6b..ec983fec58 100755 --- a/main/exercice/unique_answer_no_option.class.php +++ b/main/exercice/unique_answer_no_option.class.php @@ -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);