We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3744ca commit 13d4138Copy full SHA for 13d4138
1 file changed
edit_stack_form.php
@@ -107,7 +107,7 @@ public function set_data($question) {
107
// If the question is broken we run validation when the form is loaded to display errors.
108
// We have to temporarily remove the broken flag from the form to stop the validation
109
// beign by-passed.
110
- if ($question->options->isbroken) {
+ if (!empty($this->question->options->isbroken)) {
111
$mform = $this->_form;
112
$mform->setDefault('isbroken', 0);
113
$this->is_validated();
0 commit comments