Adding "select category" option when editing LP settings see BT#5763

skala
Julio Montoya 12 years ago
parent 2255fbcc33
commit 56ba8887d1
  1. 4
      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);

Loading…
Cancel
Save