[Fusionforge-commits] r11401 - trunk/src/common/docman

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Fri Nov 5 15:09:30 CET 2010


Author: nerville
Date: 2010-11-05 15:09:30 +0100 (Fri, 05 Nov 2010)
New Revision: 11401

Modified:
   trunk/src/common/docman/Document.class.php
Log:
fix update document

Modified: trunk/src/common/docman/Document.class.php
===================================================================
--- trunk/src/common/docman/Document.class.php	2010-11-05 13:48:24 UTC (rev 11400)
+++ trunk/src/common/docman/Document.class.php	2010-11-05 14:09:30 UTC (rev 11401)
@@ -585,9 +585,11 @@
         $result = db_query_params('SELECT filename,doc_group from docdata_vw',
                                 array($filename,$doc_group));
 
-        if (!$result || db_numrows($res) > 0) {
-			$this->setError(_('Document already published in this directory'));
-            return false;
+        if ($data) {
+            if (!$result || db_numrows($res) > 0) {
+			    $this->setError(_('Document already published in this directory'));
+                return false;
+            }
         }
 
 		$perm =& $this->Group->getPermission ();




More information about the Fusionforge-commits mailing list