[Fusionforge-commits] FusionForge branch master updated. 29878374f51090900262cad0407443925bd6d09b

Franck VILLAUME nerville at fusionforge.org
Wed Dec 18 22:16:57 CET 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  29878374f51090900262cad0407443925bd6d09b (commit)
      from  0ba9968e03a235fff2ea0ffe8eb7340e578857e1 (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 29878374f51090900262cad0407443925bd6d09b
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Dec 18 22:16:37 2013 +0100

    fix [#591]: php warning post_name not set

diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php b/src/common/tracker/include/ArtifactTypeHtml.class.php
index c6f9cb3..bb46936 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -143,21 +143,23 @@ class ArtifactTypeHtml extends ArtifactType {
 	}
 
 	/**
-	 * @param array  $selected
-	 * @param bool   $show_100
-	 * @param string $text_100
-	 * @param bool   $show_any
-	 * @param string $text_any
-	 * @param array  $types
-	 * @param bool   $status_show_100
-	 * @param string $mode
+	 * renderExtraFields - ???
+	 *
+	 * @param	array	$selected
+	 * @param	bool	$show_100
+	 * @param	string	$text_100
+	 * @param	bool	$show_any
+	 * @param	string	$text_any
+	 * @param	array	$types
+	 * @param	bool	$status_show_100
+	 * @param	string	$mode
 	 */
-	function renderExtraFields($selected=array(),
-                               $show_100=false,$text_100='none',
-                               $show_any=false,$text_any='Any',
-                               $types=array(),
-                               $status_show_100=false,
-                               $mode='') {
+	function renderExtraFields($selected = array(),
+                               $show_100 = false, $text_100 = 'none',
+                               $show_any = false, $text_any = 'Any',
+                               $types = array(),
+                               $status_show_100 = false,
+                               $mode = '') {
 		$efarr = $this->getExtraFields($types);
 		//each two columns, we'll reset this and start a new row
 
@@ -183,6 +185,7 @@ class ArtifactTypeHtml extends ArtifactType {
 		if ($mode === 'DISPLAY') {
 			$keys=array_keys($efarr);
 			for ($k=0; $k<count($keys); $k++) {
+				$post_name = '';
 				$i=$keys[$k];
 
 				if (!isset($selected[$efarr[$i]['extra_field_id']]))
@@ -220,16 +223,16 @@ class ArtifactTypeHtml extends ArtifactType {
 					// Convert artifact id to links.
 					$value = preg_replace('/\b(\d+)\b/e', "_artifactid2url('\\1')", $value);
 				}
-				$template = str_replace('{$PostName:'.$efarr[$i]['field_name'].'}',$post_name,$template);
-				$template = str_replace('{$'.$efarr[$i]['field_name'].'}',$value,$template);
+				$template = str_replace('{$PostName:'.$efarr[$i]['field_name'].'}', $post_name, $template);
+				$template = str_replace('{$'.$efarr[$i]['field_name'].'}', $value, $template);
 			}
 			echo $template;
 			return ;
 		}
 
-		$keys=array_keys($efarr);
-		for ($k=0; $k<count($keys); $k++) {
-			$i=$keys[$k];
+		$keys = array_keys($efarr);
+		for ($k = 0; $k < count($keys); $k++) {
+			$i = $keys[$k];
 			$post_name = '';
 
 			if (!isset($selected[$efarr[$i]['extra_field_id']]))

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

Summary of changes:
 .../tracker/include/ArtifactTypeHtml.class.php     |   41 +++++++++++---------
 1 file changed, 22 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list