[Fusionforge-commits] r9034 - trunk/gforge/common/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Mar 12 10:18:12 CET 2010


Author: aljeux
Date: 2010-03-12 10:18:12 +0100 (Fri, 12 Mar 2010)
New Revision: 9034

Modified:
   trunk/gforge/common/include/Group.class.php
Log:
Avoid useless change in history if SCM not changed

Modified: trunk/gforge/common/include/Group.class.php
===================================================================
--- trunk/gforge/common/include/Group.class.php	2010-03-11 22:11:02 UTC (rev 9033)
+++ trunk/gforge/common/include/Group.class.php	2010-03-12 09:18:12 UTC (rev 9034)
@@ -872,6 +872,10 @@
 	 * @param	string The name of the new SCM_BOX
 	 */
 	function setSCMBox($scm_box) {
+
+		if ($scm_box == $this->data_array['scm_box']) {
+			return true;
+		}
 		if ($scm_box) {
 			db_begin();
 			$res = db_query_params ('UPDATE groups SET scm_box=$1 WHERE group_id=$2', array ($scm_box, $this->getID ()));




More information about the Fusionforge-commits mailing list