Merge branch 'MDL-87334-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE
This commit is contained in:
@@ -429,7 +429,7 @@ class course_edit_form extends moodleform {
|
||||
// When two elements we need a group.
|
||||
$buttonarray = array();
|
||||
$classarray = array('class' => 'form-submit');
|
||||
if ($returnto !== 0) {
|
||||
if (!empty($returnto)) {
|
||||
$buttonarray[] = &$mform->createElement('submit', 'saveandreturn', get_string('savechangesandreturn'), $classarray);
|
||||
}
|
||||
$buttonarray[] = &$mform->createElement('submit', 'saveanddisplay', get_string('savechangesanddisplay'), $classarray);
|
||||
|
||||
Reference in New Issue
Block a user