[Fusionforge-commits] r9686 - branches/Branch_5_0/gforge/www/include

Roland Mas lolando at libremir.placard.fr.eu.org
Tue May 4 22:44:03 CEST 2010


Author: lolando
Date: 2010-05-04 22:44:03 +0200 (Tue, 04 May 2010)
New Revision: 9686

Modified:
   branches/Branch_5_0/gforge/www/include/trove.php
Log:
Fix for foreign key constraint violation when deleting a trove category

Modified: branches/Branch_5_0/gforge/www/include/trove.php
===================================================================
--- branches/Branch_5_0/gforge/www/include/trove.php	2010-05-04 08:06:53 UTC (rev 9685)
+++ branches/Branch_5_0/gforge/www/include/trove.php	2010-05-04 20:44:03 UTC (rev 9686)
@@ -406,6 +406,11 @@
         if (!$res) {
                 exit_error( _('Error In Trove Operation'), db_error());
         }
+        $res=db_query_params ('DELETE FROM trove_agg WHERE trove_cat_id=$1',
+			array($node));
+        if (!$res) {
+                exit_error( _('Error In Trove Operation'), db_error());
+        }
         $res=db_query_params ('DELETE FROM trove_cat WHERE trove_cat_id=$1',
 			array($node));
         if (!$res || db_affected_rows($res)<1) {




More information about the Fusionforge-commits mailing list