From 7842641fb7de1421ab612744948f116b82ea09a9 Mon Sep 17 00:00:00 2001 From: Cristian Fasanando Date: Wed, 8 Apr 2009 18:25:43 +0200 Subject: [PATCH] [svn r19651] Minor - When you select a module o a directory item and add a item the parent with either those items is selected - partial FS#3909 --- main/newscorm/learnpath.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index bbc2cff9ce..0e7922f2d3 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -4819,9 +4819,8 @@ class learnpath { $result = api_sql_query($sql, __FILE__, __LINE__); while($row = Database::fetch_array($result)) - { - - $_SESSION['parent_item_id'] = ($row['item_type']=='dokeos_chapter')?$item_id:0; + { + $_SESSION['parent_item_id'] = ($row['item_type']=='dokeos_chapter' || $row['item_type']=='dokeos_module' || $row['item_type']=='dir')?$item_id:0; $return .= $this->display_manipulate($item_id, $row['item_type']);