Fixing bug when eiditing link position in LP -refs #6699

1.9.x
Yoselyn Castillo 12 years ago
parent 2ae33c29e9
commit 6437f35beb
  1. 2
      main/newscorm/learnpath.class.php

@ -7162,7 +7162,7 @@ class learnpath {
$return .= '<select id="previous" name="previous" style="width:100%;" size="1" class="learnpath_item_form">';
$return .= '<option class="top" value="0">' . get_lang('FirstPosition') . '</option>';
for ($i = 0; $i < count($arrLP); $i++) {
if ($arrLP[$i]['parent_item_id'] == $parent_item_id && $arrLP[$i]['id'] != $id) {
if ($arrLP[$i]['parent_item_id'] == $parent && $arrLP[$i]['id'] != $id) {
if ($extra_info['previous_item_id'] == $arrLP[$i]['id'])
$selected = 'selected="selected" ';
elseif ($action == 'add')

Loading…
Cancel
Save