|
|
|
@ -48,10 +48,12 @@ if ($form->validate()) { |
|
|
|
|
if (!empty($values['id'])) { |
|
|
|
|
learnpath::updateCategory($values); |
|
|
|
|
$url = api_get_self().'?action=list&'.api_get_cidreq(); |
|
|
|
|
Display::addFlash(Display::return_message(get_lang('Updated'))); |
|
|
|
|
header('Location: '.$url); |
|
|
|
|
exit; |
|
|
|
|
} else { |
|
|
|
|
learnpath::createCategory($values); |
|
|
|
|
Display::addFlash(Display::return_message(get_lang('Added'))); |
|
|
|
|
$url = api_get_self().'?action=list&'.api_get_cidreq(); |
|
|
|
|
header('Location: '.$url); |
|
|
|
|
exit; |
|
|
|
|