Minor: Fix course category button - refs #7539

1.10.x
Yannick Warnier 11 years ago
parent fd6bdb18d9
commit e04deceb98
  1. 3
      main/admin/course_category.php

@ -96,12 +96,13 @@ if ($action == 'add' || $action == 'edit') {
$class = "save"; $class = "save";
$text = get_lang('CategoryMod'); $text = get_lang('CategoryMod');
$form->setDefaults($categoryInfo); $form->setDefaults($categoryInfo);
$form->addButtonSave($text);
} else { } else {
$class = "add"; $class = "add";
$text = get_lang('AddCategory'); $text = get_lang('AddCategory');
$form->setDefaults(array('auth_course_child' => 'TRUE')); $form->setDefaults(array('auth_course_child' => 'TRUE'));
$form->addButtonCreate($text);
} }
$form->addElement('button', 'submit', $text);
$form->display(); $form->display();
} elseif (api_get_multiple_access_url() && api_get_current_access_url_id() != 1) { } elseif (api_get_multiple_access_url() && api_get_current_access_url_id() != 1) {
// If multiple URLs and not main URL, prevent edition and inform user // If multiple URLs and not main URL, prevent edition and inform user

Loading…
Cancel
Save