From 03adfa13e50132d839f9f0aa41c9a352cd6a17c5 Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Mon, 26 Oct 2009 21:00:04 +0000 Subject: [PATCH] MDL-20585 correcting so that the confirm check button appears only on reload if errors are detected but also correcting the test setting an error on confir line 394 --- question/type/multianswer/edit_multianswer_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/multianswer/edit_multianswer_form.php b/question/type/multianswer/edit_multianswer_form.php index c49359b3ed..ce6e1e0257 100644 --- a/question/type/multianswer/edit_multianswer_form.php +++ b/question/type/multianswer/edit_multianswer_form.php @@ -346,7 +346,7 @@ class question_edit_multianswer_form extends question_edit_form { } } } - if (( $this->negative_diff || $this->used_in_quiz )&& $this->confirm == 0 ){ + if (( $this->negative_diff || $this->used_in_quiz && ($this->negative_diff > 0 ||$this->negative_diff < 0 || $this->type_change ))&& $this->confirm == 0 ){ $this->_form->setElementError('confirm',"confirm then save"); } $default_values['alertas']= "".get_string(" -- 2.39.5