Переглянути джерело

[svn r19611] Minor - Added condition if the document don't exits so item list layout only modify its height when create a new document with template- partial FS#3909

Cristian Fasanando 16 роки тому
батько
коміт
90cfae4e2b
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      main/newscorm/lp_add_item.php

+ 1 - 1
main/newscorm/lp_add_item.php

@@ -210,7 +210,7 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
 			
 		echo '<td class="tree">';								
 			// show the template list 			
-			if ($_GET['type']=='document')
+			if (isset($_GET['type']) && $_GET['type']=='document' && !isset($_GET['file']))
 			{
 				$count_items = count($_SESSION['oLP']->ordered_items);
 				$style = ($count_items > 12)?' style="height:250px;width:230px;overflow-x : auto; overflow-y : scroll;" ':' class="lp_tree" ';