[Fusionforge-commits] r10720 - in trunk/src/common/docman: . views

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Sun Sep 26 18:36:57 CEST 2010


Author: nerville
Date: 2010-09-26 18:36:57 +0200 (Sun, 26 Sep 2010)
New Revision: 10720

Modified:
   trunk/src/common/docman/DocumentGroupFactory.class.php
   trunk/src/common/docman/views/tree.php
Log:
remove no document groups limitation

Modified: trunk/src/common/docman/DocumentGroupFactory.class.php
===================================================================
--- trunk/src/common/docman/DocumentGroupFactory.class.php	2010-09-26 16:18:08 UTC (rev 10719)
+++ trunk/src/common/docman/DocumentGroupFactory.class.php	2010-09-26 16:36:57 UTC (rev 10720)
@@ -84,7 +84,7 @@
 					   array ($this->Group->getID(),$stateid));
 		$rows = db_numrows($result);
 		
-		if (!$result || $rows < 1) {
+		if (!$result) {
 			$this->setError('No Groups Found '.db_error());
 			return false;
 		} else {

Modified: trunk/src/common/docman/views/tree.php
===================================================================
--- trunk/src/common/docman/views/tree.php	2010-09-26 16:18:08 UTC (rev 10719)
+++ trunk/src/common/docman/views/tree.php	2010-09-26 16:36:57 UTC (rev 10720)
@@ -28,6 +28,7 @@
 /* global variables used */
 global $d_arr; // documents array
 
+echo '<h3>Document Tree</h3>';
 if (!$d_arr || count($d_arr) < 1) {
 	print '<div class="feedback">'._('This project has no visible documents').'</div>';
 } else {
@@ -40,7 +41,6 @@
 		$nested_docs[$doc->getDocGroupID()][] = $doc;
 	}
 	echo '<div id="documenttree" style="height:100%">';
-	echo '<h3>Document Tree</h3>';
 ?>
 <script language="JavaScript"><!--
 	var myThemeXPBase = "<?php echo util_make_uri ('/jscook/ThemeXP/'); ?>";




More information about the Fusionforge-commits mailing list