Browse Source

[svn r10854] allows to create a chapter as first element of a lp

Eric Marguin 18 years ago
parent
commit
e4a8b62e6e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/newscorm/learnpath.class.php

+ 3 - 1
main/newscorm/learnpath.class.php

@@ -5405,10 +5405,12 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 			}
 			
 			$position = &$form->addElement('select', 'previous', get_lang("Position")." :", '', 'id="idPosition" style="background:#F8F8F8; border:1px solid #999999; font-family:Arial, Verdana, Helvetica, sans-serif; font-size:12px; width:300px;"');
-
+			
+			$position->addOption(get_lang('FirstPosition'),$key,'style="padding-left:'.$value['padding'].'px;"');
 			foreach($arrHide as $key => $value){
 				$position->addOption($value['value'],$key,'style="padding-left:'.$value['padding'].'px;"');
 			}
+			if(empty($s_selected_position))
 			$position -> setSelected($s_selected_position);
 			reset($arrLP);