[Fusionforge-commits] FusionForge branch master updated. d486e64e05647754fe51081914e79cb9e33e389a

Franck Villaume nerville at fusionforge.org
Mon Sep 1 13:42:17 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, master has been updated
       via  d486e64e05647754fe51081914e79cb9e33e389a (commit)
      from  7e1d294460a4b7fbeff0d9607a27bb576a364174 (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 d486e64e05647754fe51081914e79cb9e33e389a
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 e257322..609d76d 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -197,7 +197,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[
@@ -476,6 +476,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