[svn r13642] Minor - Fixed bug preventing the last position to be selected by default on new chapter creation

skala
Yannick Warnier 18 years ago
parent 2268ae9468
commit 20423ee569
  1. 3
      main/newscorm/learnpath.class.php

@ -5582,8 +5582,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
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);
if(!empty($s_selected_position)) { $position->setSelected($s_selected_position); }
if(is_array($arrLP)) { reset($arrLP); }
if($action != 'move'){

Loading…
Cancel
Save