Skip to content

Commit 13d4138

Browse files
committed
broken-save - Fix test issue
1 parent f3744ca commit 13d4138

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

edit_stack_form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function set_data($question) {
107107
// If the question is broken we run validation when the form is loaded to display errors.
108108
// We have to temporarily remove the broken flag from the form to stop the validation
109109
// beign by-passed.
110-
if ($question->options->isbroken) {
110+
if (!empty($this->question->options->isbroken)) {
111111
$mform = $this->_form;
112112
$mform->setDefault('isbroken', 0);
113113
$this->is_validated();

0 commit comments

Comments
 (0)