[Fusionforge-commits] r13151 - trunk/src/common/docman/views

Franck VILLAUME nerville at fusionforge.org
Sun Apr 17 22:40:59 CEST 2011


Author: nerville
Date: 2011-04-17 22:40:59 +0200 (Sun, 17 Apr 2011)
New Revision: 13151

Modified:
   trunk/src/common/docman/views/listpendingfile.php
Log:
fix pending view

Modified: trunk/src/common/docman/views/listpendingfile.php
===================================================================
--- trunk/src/common/docman/views/listpendingfile.php	2011-04-15 22:21:21 UTC (rev 13150)
+++ trunk/src/common/docman/views/listpendingfile.php	2011-04-17 20:40:59 UTC (rev 13151)
@@ -35,9 +35,15 @@
 }
 
 $df->setStateID('3');
-$d_pending_arr =& $df->getDocuments();
 
-if (!$d_pending_arr || count($d_pending_arr) < 1) {
+/**
+ * var must be named d_arr & nested_groups
+ * because used by tree.php
+ */
+$d_arr =& $df->getDocuments();
+$nested_groups = $dgf->getNested();
+
+if (!$d_arr || count($d_arr) < 1) {
 	echo '<div class="warning">'._('No pending documents').'</div>';
 } else {
 	docman_display_documents($nested_groups, $df, true, 3, 0);




More information about the Fusionforge-commits mailing list