From 56ba8887d1732ff05ec5bf99a791385c9a03795e Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 19 Mar 2013 09:14:36 +0100 Subject: [PATCH] Adding "select category" option when editing LP settings see BT#5763 --- main/newscorm/lp_edit.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/newscorm/lp_edit.php b/main/newscorm/lp_edit.php index 51f214a748..d19fb225ed 100644 --- a/main/newscorm/lp_edit.php +++ b/main/newscorm/lp_edit.php @@ -70,6 +70,10 @@ $form->addRule('lp_name', get_lang('ThisFieldIsRequired'), 'required'); $form->addElement('hidden', 'lp_encoding'); $items = learnpath::get_category_from_course_into_select(api_get_course_int_id()); + +if (!empty($items)) { + $items = array_merge(array(get_lang('SelectACategory')), $items); +} $form->addElement('select', 'category_id', get_lang('Category'), $items);