MDL-10886 - Category edit: use 'save changes', enable cancel button to allow us

to get back from where we came from & refine where we are returned to when cancelled.
merged from MOODLE_19_STABLE
This commit is contained in:
poltawski
2008-01-09 10:49:59 +00:00
parent 4597d5335b
commit f62cb19d89
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ if (!empty($category)) {
if ($mform->is_cancelled()){
if (empty($category)) {
redirect($CFG->wwwroot);
redirect($CFG->wwwroot .'/course/index.php?categoryedit=on');
} else {
redirect($CFG->wwwroot.'/course/category.php?categoryedit=on&id='.$category->id);
}
+1 -1
View File
@@ -28,7 +28,7 @@ class editcategory_form extends moodleform {
$mform->addElement('hidden', 'id', null);
$mform->addElement('hidden', 'categoryadd', 0);
$mform->setType('id', PARAM_INT);
$this->add_action_buttons(false, get_string('submit'));
$this->add_action_buttons(true, get_string('savechanges'));
}
}
?>