[Fusionforge-commits] r15353 - trunk/src/common/include

Julien HEYMAN jheyman at fusionforge.org
Wed Apr 18 14:49:19 CEST 2012


Author: jheyman
Date: 2012-04-18 14:49:18 +0200 (Wed, 18 Apr 2012)
New Revision: 15353

Modified:
   trunk/src/common/include/Group.class.php
Log:
Delete fake group_join_request when you approve a project

Modified: trunk/src/common/include/Group.class.php
===================================================================
--- trunk/src/common/include/Group.class.php	2012-04-18 12:48:35 UTC (rev 15352)
+++ trunk/src/common/include/Group.class.php	2012-04-18 12:49:18 UTC (rev 15353)
@@ -2394,6 +2394,11 @@
 		$this->normalizeAllRoles();
 		$this->activateUsers();
 
+		// Delete fake join request
+		foreach (get_group_join_requests ($this) as $gjr) {
+			$gjr->delete(true) ;
+		}
+
 		// Switch back to user preference
 		session_set_internal($saved_session->getID());
 		setup_gettext_from_context();




More information about the Fusionforge-commits mailing list