[Fusionforge-commits] FusionForge branch master updated. 77242a5775934935114d8ff46521f11e0aae10e7

Franck VILLAUME nerville at fusionforge.org
Wed May 1 19:58:59 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  77242a5775934935114d8ff46521f11e0aae10e7 (commit)
      from  ff13d4ac77aeed47d390aee91836a8e0deff7534 (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 77242a5775934935114d8ff46521f11e0aae10e7
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed May 1 19:58:33 2013 +0200

    projects-hierarchy plugin: on create using template, use the template configuration too

diff --git a/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php b/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
index 7d4fc10..775bb36 100644
--- a/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
+++ b/src/plugins/projects-hierarchy/common/projects-hierarchyPlugin.class.php
@@ -143,6 +143,8 @@ class projects_hierarchyPlugin extends Plugin {
 				$project = $params['project'];
 				if ($project->usesPlugin($this->name)) {
 					$this->add($project->getID());
+					$templateConfArr = $this->getConf($params['template']->getID());
+					$this->updateConf($project->getID(), $templateConfArr);
 				}
 				break;
 			}
@@ -702,9 +704,9 @@ class projects_hierarchyPlugin extends Plugin {
 
 		foreach($resArr as $column => $value) {
 			if ($value == 't') {
-				$returnArr[$column] = true;
+				$returnArr[$column] = 1;
 			} else {
-				$returnArr[$column] = false;
+				$returnArr[$column] = 0;
 			}
 		}
 

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

Summary of changes:
 .../projects-hierarchy/common/projects-hierarchyPlugin.class.php |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list