[Fusionforge-commits] r9273 - in trunk/gforge/common: forum pm tracker

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Mar 29 11:12:55 CEST 2010


Author: lolando
Date: 2010-03-29 11:12:55 +0200 (Mon, 29 Mar 2010)
New Revision: 9273

Modified:
   trunk/gforge/common/forum/Forum.class.php
   trunk/gforge/common/pm/ProjectGroup.class.php
   trunk/gforge/common/tracker/ArtifactType.class.php
Log:
Also normalize all roles when deleting a forum, a tracker or a subproject

Modified: trunk/gforge/common/forum/Forum.class.php
===================================================================
--- trunk/gforge/common/forum/Forum.class.php	2010-03-29 09:12:45 UTC (rev 9272)
+++ trunk/gforge/common/forum/Forum.class.php	2010-03-29 09:12:55 UTC (rev 9273)
@@ -654,7 +654,11 @@
 		db_query_params ('DELETE FROM role_setting WHERE section_name=$1 AND ref_id=$2',
 				 array ('forum',
 				 $this->getID())) ;
+
 		db_commit();
+
+		$this->Group->normalizeAllRoles () ;
+
 		return true;
 	}
 

Modified: trunk/gforge/common/pm/ProjectGroup.class.php
===================================================================
--- trunk/gforge/common/pm/ProjectGroup.class.php	2010-03-29 09:12:45 UTC (rev 9272)
+++ trunk/gforge/common/pm/ProjectGroup.class.php	2010-03-29 09:12:55 UTC (rev 9273)
@@ -512,8 +512,10 @@
                         return false;
                 }
 
+		db_commit();
 
-		db_commit();
+		$this->Group->normalizeAllRoles () ;
+
 		return true;
 	}
 

Modified: trunk/gforge/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactType.class.php	2010-03-29 09:12:45 UTC (rev 9272)
+++ trunk/gforge/common/tracker/ArtifactType.class.php	2010-03-29 09:12:55 UTC (rev 9273)
@@ -881,6 +881,9 @@
 //echo '11'.db_error();
 		
 		db_commit();
+
+		$this->Group->normalizeAllRoles () ;
+
 		return true;
 	}
 




More information about the Fusionforge-commits mailing list