[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 50019832ddae8caa0ae449e45701cb5f2cf257ee

Franck VILLAUME nerville at fusionforge.org
Sat Feb 15 15:30:18 CET 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  50019832ddae8caa0ae449e45701cb5f2cf257ee (commit)
      from  ddb7a776b9ac70019ff072a47f2759b2f9ef219c (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 50019832ddae8caa0ae449e45701cb5f2cf257ee
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Feb 15 15:28:48 2014 +0100

    pm: handle correcly no dependent tasks

diff --git a/src/common/pm/ProjectTask.class.php b/src/common/pm/ProjectTask.class.php
index 3077f30..23abc47 100644
--- a/src/common/pm/ProjectTask.class.php
+++ b/src/common/pm/ProjectTask.class.php
@@ -7,7 +7,7 @@
  * Copyright 2009, Roland Mas
  * Copyright 2010, Alain Peyrat - Alcatel-Lucent
  * Copyright 2011, Thorsten Glaser <t.glaser at tarent.de>
- * Copyright 2013, Franck Villaume - TrivialDev
+ * Copyright 2013-2014, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -807,6 +807,7 @@ class ProjectTask extends Error {
 	 * @param	array	$arr
 	 */
 	function &convertDependentOn($arr) {
+		$new = array();
 		$deps = $this->getDependentOn();
 		for ($i=0; $i<count($arr); $i++) {
 			if (isset($deps[$arr[$i]])) {
diff --git a/src/www/pm/task.php b/src/www/pm/task.php
index b092c51..5a8e956 100644
--- a/src/www/pm/task.php
+++ b/src/www/pm/task.php
@@ -7,7 +7,7 @@
  * Copyright 2009, Roland Mas
  * Copyright 2010, Franck Villaume - Capgemini
  * Copyright (C) 2012 Alain Peyrat - Alcatel-Lucent
- * Copyright 2013, Franck Villaume - TrivialDev
+ * Copyright 2013-2014, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -130,8 +130,7 @@ switch (getStringFromRequest('func')) {
 			exit_error(_('Illegal format for hours: must be an integer or a float number.'),'pm');
 		}
 
-		if (!$dependent_on)
-		{
+		if (!is_array($dependent_on)) {
 			$dependent_on=array();
 		}
 		$start_date=mktime($start_hour,$start_minute,0,$start_month,$start_day,$start_year);

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

Summary of changes:
 src/common/pm/ProjectTask.class.php |    3 ++-
 src/www/pm/task.php                 |    5 ++---
 2 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list