[Fusionforge-commits] FusionForge branch master updated. ba0c9ddf11ffd165c8b8cc2efc19b0bc1ab4c81e

Alain Peyrat aljeux at fusionforge.org
Tue Nov 13 19:56:49 CET 2012


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  ba0c9ddf11ffd165c8b8cc2efc19b0bc1ab4c81e (commit)
       via  f0ba36c309c9ecc0285f5c6e26a5226f0b339dca (commit)
      from  9c1160a2bb4b60eca2bf347dcf1898ab20d6b732 (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 ba0c9ddf11ffd165c8b8cc2efc19b0bc1ab4c81e
Author: Alain Peyrat <aljeux at free.fr>
Date:   Tue Nov 13 19:56:04 2012 +0100

    Fix warnings

diff --git a/src/common/tracker/views/form-extrafieldcopy.php b/src/common/tracker/views/form-extrafieldcopy.php
index c5e9430..72db937 100644
--- a/src/common/tracker/views/form-extrafieldcopy.php
+++ b/src/common/tracker/views/form-extrafieldcopy.php
@@ -53,7 +53,7 @@ $res = db_query_params ('SELECT g.unix_group_name, agl.name AS tracker_name, aef
 		}
 
 		$title = sprintf(_('Copy choices from custom field %1$s'), $fb->getName());
-		$ath->adminHeader(array ('title'=>$title));
+		$ath->adminHeader(array('title'=>$title));
 
 		$efearr = $ath->getExtraFieldElements($id);
 		for ($i=0; $i<count($efearr); $i++) {
@@ -78,6 +78,8 @@ $res = db_query_params ('SELECT g.unix_group_name, agl.name AS tracker_name, aef
 		echo html_build_multiple_select_box_from_arrays($field_id_arr,$field_arr,'copyid[]',array(),10,false);
 		echo '</td><th>';
 
+		$name_arr = array();
+		$id_arr = array();
 		while($arr =db_fetch_array($res)) {
 				$name_arr[]=$arr['unix_group_name']. '::'. $arr['tracker_name'] . '::'. $arr['field_name'];
 				$id_arr[]=$arr['extra_field_id'];

commit f0ba36c309c9ecc0285f5c6e26a5226f0b339dca
Author: Alain Peyrat <aljeux at free.fr>
Date:   Tue Nov 13 19:55:47 2012 +0100

    Drop unused method create in ArtifactHistory.class.php

diff --git a/src/common/tracker/ArtifactHistory.class.php b/src/common/tracker/ArtifactHistory.class.php
index 1e8f383..6e6a125 100644
--- a/src/common/tracker/ArtifactHistory.class.php
+++ b/src/common/tracker/ArtifactHistory.class.php
@@ -70,46 +70,6 @@ class ArtifactHistory extends Error {
 	}
 
 	/**
-	 *	create - create a new item in the database.
-	 *
-	 *	@param	string	Item name.
-	 *	@param	int		User_id of assignee.
-	 *  @return id on success / false on failure.
-	 * /
-	function create($name, $auto_assign_to) {
-		//
-		//	data validation
-		//
-		if (!$name || !$auto_assign_to) {
-			$this->setError(_('ArtifactCategory: name and assignee are Required'));
-			return false;
-		}
-		if (!forge_check_perm ('tracker', $this->Artifact->ArtifactType->getID()), 'manager') {
-			$this->setPermissionDeniedError();
-			return false;
-		}
-		$result = db_query_params ('INSERT INTO artifact_category (group_artifact_id,category_name,auto_assign_to)
-			VALUES ($1,$2,$3)',
-					   array ($this->Artifact->getID(),
-						  htmlspecialchars($name),
-						  $auto_assign_to)) ;
-
-
-		if ($result && db_affected_rows($result) > 0) {
-			$this->clearError();
-			return true;
-		} else {
-			$this->setError(db_error());
-			return false;
-		}
-
-		//	Now set up our internal data structures
-		if (!$this->fetchData($id)) {
-			return false;
-		}
-	}*/
-
-	/**
 	 *	fetchData - re-fetch the data for this ArtifactHistory from the database.
 	 *
 	 *	@param	int		$id ID of the category.

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

Summary of changes:
 src/common/tracker/ArtifactHistory.class.php     |   40 ----------------------
 src/common/tracker/views/form-extrafieldcopy.php |    4 ++-
 2 files changed, 3 insertions(+), 41 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list