[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 31dd309fbad59154f43c5f3b5e5e72778066ce3e

Franck Villaume nerville at fusionforge.org
Mon Sep 1 13:44:25 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_3 has been updated
       via  31dd309fbad59154f43c5f3b5e5e72778066ce3e (commit)
      from  40cfba9fed2a0611f6d531b8eb47fe194acf8361 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 31dd309fbad59154f43c5f3b5e5e72778066ce3e
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Mon Sep 1 13:39:30 2014 +0200

    fix [#721] & [#722]: jQueryAutoHeight missing html id, missing drop previous user stats in stats gathering

diff --git a/src/plugins/scmhg/common/HgPlugin.class.php b/src/plugins/scmhg/common/HgPlugin.class.php
index 08c30ef..c1ff553 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -196,7 +196,7 @@ class HgPlugin extends SCMPlugin {
 		}
 		if ($project->usesPlugin($this->name)) {
 			if ($this->browserDisplayable($project)) {
-				print '<iframe src="'.util_make_url('/plugins/scmhg/cgi-bin/'.$project->getUnixName().'.cgi?p='.$project->getUnixName()).'" frameborder="0" width="100%" ></iframe>';
+				print '<iframe id="scm_iframe" src="'.util_make_url('/plugins/scmhg/cgi-bin/'.$project->getUnixName().'.cgi?p='.$project->getUnixName()).'" frameborder="0" width="100%" ></iframe>';
 				html_use_jqueryautoheight();
 				echo $HTML->getJavascripts();
 				echo '<script type="text/javascript">//<![CDATA[
@@ -467,6 +467,17 @@ class HgPlugin extends SCMPlugin {
 				db_rollback();
 				return false;
 			}
+
+			$res = db_query_params ('DELETE FROM stats_cvs_user WHERE month=$1 AND day=$2 AND group_id=$3',
+						array ($month_string,
+						       $day,
+						       $project->getID())) ;
+			if(!$res) {
+				echo "Error while cleaning stats_cvs_user\n" ;
+				db_rollback () ;
+				return false ;
+			}
+
 			//switch into scm_repository and take a look at the log informations
 			$cdir = chdir($repo);
 			if ($cdir) {

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/scmhg/common/HgPlugin.class.php |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list