소스 검색

[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

Cristian Fasanando 16 년 전
부모
커밋
7842641fb7
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      main/newscorm/learnpath.class.php

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

@@ -4819,9 +4819,8 @@ class learnpath {
 			$result = api_sql_query($sql, __FILE__, __LINE__);
 			$result = api_sql_query($sql, __FILE__, __LINE__);
 			
 			
 			while($row = Database::fetch_array($result))
 			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']);
 				$return .= $this->display_manipulate($item_id, $row['item_type']);