[Fusionforge-commits] FusionForge branch master updated. ff13d4ac77aeed47d390aee91836a8e0deff7534

Franck VILLAUME nerville at fusionforge.org
Wed May 1 19:27:41 CEST 2013


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  ff13d4ac77aeed47d390aee91836a8e0deff7534 (commit)
      from  657df8d998cdad5edb01fc8973106fec4f5938e6 (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 ff13d4ac77aeed47d390aee91836a8e0deff7534
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed May 1 19:26:35 2013 +0200

    patch #538: fix clone from template

diff --git a/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php b/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
index 46d121f..7d4fc10 100644
--- a/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
+++ b/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
@@ -38,6 +38,7 @@ class projects_hierarchyPlugin extends Plugin {
 		$this->_addHook('site_admin_option_hook'); // to provide a link to the site wide administrative pages of plugin
 		$this->_addHook('display_hierarchy_submenu'); // to display a submenu in software map if projects-hierarchy plugin is used
 		$this->_addHook('docmansearch_has_hierarchy'); // used by the search menu in docman
+		$this->_addHook('clone_project_from_template'); // add project in database
 	}
 
 	function CallHook($hookname, &$params) {
@@ -138,6 +139,13 @@ class projects_hierarchyPlugin extends Plugin {
 				$returned = true;
 				break;
 			}
+			case "clone_project_from_template": {
+				$project = $params['project'];
+				if ($project->usesPlugin($this->name)) {
+					$this->add($project->getID());
+				}
+				break;
+			}
 		}
 		return $returned;
 	}

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

Summary of changes:
 .../common/projects-hierarchyPlugin.class.php                  |    8 ++++++++
 1 file changed, 8 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list