[Fusionforge-commits] FusionForge branch master updated. 2d0850b42bc8eb0dbf208591087e7c967c7b2735

Benoît Debaenst tiben at fusionforge.org
Tue Oct 16 00:50:55 CEST 2012


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  2d0850b42bc8eb0dbf208591087e7c967c7b2735 (commit)
      from  deed325b3553779037f059b917703d918330b521 (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 2d0850b42bc8eb0dbf208591087e7c967c7b2735
Author: Ben <tiben at trivial>
Date:   Tue Oct 16 00:47:32 2012 +0200

    fix issue : multiple click on update button clear all checkboxes

diff --git a/src/plugins/scmhook/common/scmhookPlugin.class.php b/src/plugins/scmhook/common/scmhookPlugin.class.php
index d594b18..0bbf711 100644
--- a/src/plugins/scmhook/common/scmhookPlugin.class.php
+++ b/src/plugins/scmhook/common/scmhookPlugin.class.php
@@ -4,6 +4,7 @@
  * Copyright 2011, Franck Villaume - Capgemini
  * Copyright (C) 2012 Alain Peyrat - Alcatel-Lucent
  * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright 2012, Benoit Debaenst - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -304,6 +305,11 @@ class scmhookPlugin extends Plugin {
 					echo ' disabled="disabled"';
 
 				echo ' />';
+				if (in_array($hookPreCommit->getClassname(), $hooksEnabled) && $statusDeploy) {
+					echo '<input type="hidden" ';
+					echo 'name="'.$hookPreCommit->getLabel().'_'.$hookPreCommit->getClassname().'" ';
+					echo 'value="on" />';
+				}
 				echo '</td><td';
 				if (!$hookPreCommit->isAvailable())
 					echo ' class="tabtitle-w" title="'.$hookPreCommit->getDisabledMessage().'"';
@@ -342,6 +348,11 @@ class scmhookPlugin extends Plugin {
 					echo ' disabled="disabled"';
 
 				echo ' />';
+				if (in_array($hook->getClassname(), $hooksEnabled) && $statusDeploy) {
+					echo '<input type="hidden" ';
+					echo 'name="'.$hook->getLabel().'_'.$hook->getClassname().'" ';
+					echo 'value="on" />';
+				}
 				echo '</td><td';
 				if (!$hook->isAvailable())
 					echo ' class="tabtitle-w" title="'.$hook->getDisabledMessage().'"';
@@ -381,6 +392,11 @@ class scmhookPlugin extends Plugin {
 					echo ' disabled="disabled"';
 
 				echo ' />';
+				if (in_array($hookPostCommit->getClassname(), $hooksEnabled) && $statusDeploy) {
+					echo '<input type="hidden" ';
+					echo 'name="'.$hookPostCommit->getLabel().'_'.$hookPostCommit->getClassname().'" ';
+					echo 'value="on" />';
+				}
 				echo '</td><td';
 				if (!$hookPostCommit->isAvailable())
 					echo ' class="tabtitle-w" title="'.$hookPostCommit->getDisabledMessage().'"';
@@ -437,6 +453,12 @@ class scmhookPlugin extends Plugin {
 					echo ' disabled="disabled"';
 
 				echo ' />';
+				if (in_array($hookServePushPullBundle->getClassname(), $hooksEnabled) && $statusDeploy) {
+					echo '<input type="hidden" ';
+					echo 'name="'.$hookServePushPullBundle->getLabel().'_'.$hookServePushPullBundle->getClassname().'" ';
+					echo 'value="on" />';
+				}
+
 				echo '</td><td';
 				if (!$hookServePushPullBundle->isAvailable())
 					echo ' class="tabtitle-w" title="'.$hookServePushPullBundle->getDisabledMessage().'"';

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

Summary of changes:
 src/plugins/scmhook/common/scmhookPlugin.class.php |   22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list