[evolvis-commits] r18264: do $r->refetchData() after db_commit() following $r->setSetting()

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Apr 10 16:37:21 CEST 2012


Author: mirabilos
Date: 2012-04-10 16:37:20 +0200 (Tue, 10 Apr 2012)
New Revision: 18264

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php
Log:
do $r->refetchData() after db_commit() following $r->setSetting()

Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php	2012-04-10 14:37:16 UTC (rev 18263)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php	2012-04-10 14:37:20 UTC (rev 18264)
@@ -1074,6 +1074,7 @@
 			$r = RoleAnonymous::getInstance () ;
 			$r->setSetting ('scm', $this->getID(), $booleanparam) ;
 			db_commit () ;
+			$r->refetchData();
 		} else {
 		$res = db_query_params ('UPDATE groups SET enable_anonscm=$1 WHERE group_id=$2',
 					array ($booleanparam, $this->getID()));



More information about the evolvis-commits mailing list