[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 3379aa47bbc9960e09c67b26e7ad1dc705ccd934
Franck Villaume
nerville at fusionforge.org
Thu Oct 16 16:14:50 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 3379aa47bbc9960e09c67b26e7ad1dc705ccd934 (commit)
from cff36e9e65e2f166c2729823df3dd8f3be5e1a33 (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 3379aa47bbc9960e09c67b26e7ad1dc705ccd934
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Thu Oct 16 16:12:43 2014 +0200
fix [#742] plugin hudson: delete job on project deletion
diff --git a/src/plugins/hudson/include/hudsonPlugin.class.php b/src/plugins/hudson/include/hudsonPlugin.class.php
index 6a62cf6..b36b559 100644
--- a/src/plugins/hudson/include/hudsonPlugin.class.php
+++ b/src/plugins/hudson/include/hudsonPlugin.class.php
@@ -141,6 +141,8 @@ class hudsonPlugin extends Plugin {
* @param mixed $params ($param['group_id'] the ID of the deleted project)
*/
function projectIsDeleted($params) {
+ global $gfcommon;
+ require_once $gfcommon.'dao/CodendiDataAccess.class.php';
$group_id = $params['group_id'];
$job_dao = new PluginHudsonJobDao(CodendiDataAccess::instance());
$dar = $job_dao->deleteHudsonJobsByGroupID($group_id);
-----------------------------------------------------------------------
Summary of changes:
src/plugins/hudson/include/hudsonPlugin.class.php | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list