mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
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
This commit is contained in:
parent
b8affd4c8a
commit
03adfa13e5
@ -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']= "<strong>".get_string("
|
||||
|
Loading…
x
Reference in New Issue
Block a user