[Fusionforge-commits] r12302 - trunk/src/common/docman/actions

Franck VILLAUME nerville at fusionforge.org
Fri Feb 18 17:32:33 CET 2011


Author: nerville
Date: 2011-02-18 17:32:33 +0100 (Fri, 18 Feb 2011)
New Revision: 12302

Modified:
   trunk/src/common/docman/actions/emptytrash.php
Log:
really fix the emptytrash

Modified: trunk/src/common/docman/actions/emptytrash.php
===================================================================
--- trunk/src/common/docman/actions/emptytrash.php	2011-02-18 16:30:17 UTC (rev 12301)
+++ trunk/src/common/docman/actions/emptytrash.php	2011-02-18 16:32:33 UTC (rev 12302)
@@ -38,10 +38,10 @@
 if (!$emptyFile)
 	session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode(db_error()));
 
-$emptyDir = db_query_params('DELETE FROM doc_groups WHERE stateid=$1 and group_id=$2 and groupname !=$3',array('2',$group_id));
+$emptyDir = db_query_params('DELETE FROM doc_groups WHERE stateid=$1 and group_id=$2 and groupname !=$3',array('2',$group_id,'.trash'));
 if (!$emptyDir)
 	session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode(db_error()));
 
 $return_msg = _('Emptied Trash successfully.');
-session_redirect('/docman/?group_id='.$group_id.'&view=trashfile&feedback='.urlencode($return_msg));
+session_redirect('/docman/?group_id='.$group_id.'&view=listtrashfile&feedback='.urlencode($return_msg));
 ?>




More information about the Fusionforge-commits mailing list