Fix Cancel button on Edit form.

This commit is contained in:
Mikhail Golenkov
2020-02-04 17:40:32 +11:00
parent 0137811f2b
commit 587bd3a311
2 changed files with 17 additions and 7 deletions

View File

@@ -163,10 +163,16 @@ class edit extends moodleform {
$this->_form->addElement('html',
$OUTPUT->notification(get_string('warningreenablemaintenancemode', 'auth_outage'), 'notifywarning'));
}
$this->add_action_buttons();
} else {
throw new coding_exception('$outage must be an outage object.', $outage);
}
}
/**
* {@inheritDoc}
* @see moodleform::definition_after_data()
*/
public function definition_after_data() {
$this->add_action_buttons();
}
}