[evolvis-commits] r18081: [#2386] status_id is also not transmitted by TRK_TECH

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Feb 1 14:03:47 CET 2012


Author: mirabilos
Date: 2012-02-01 14:03:47 +0100 (Wed, 01 Feb 2012)
New Revision: 18081

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php
Log:
[#2386] status_id is also not transmitted by TRK_TECH


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php	2012-02-01 13:03:42 UTC (rev 18080)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/tracker/Artifact.class.php	2012-02-01 13:03:47 UTC (rev 18081)
@@ -869,18 +869,18 @@
 			$canned_response=100;
 			$new_artifact_type_id=$this->ArtifactType->getID();
 			$assigned_to=$this->getAssignedTo();
+			$status_id = $this->getStatusID();
 
 			if (!forge_check_perm ('tracker', $this->ArtifactType->getID(), 'tech')) {
 				$this->setPermissionDeniedError();
 				return false;
 			}
-		}
+		} else if (count($extra_fields) > 0) {
 		//
 		//	They may be using an extra field "status" box so we have to remap
 		//	the status_id based on the extra field - this keeps the counters
 		//	accurate
 		//
-		if (count($extra_fields) > 0) {
 			$status_id=$this->ArtifactType->remapStatus($status_id,$extra_fields);
 		}
 		if (!$this->getID() 



More information about the evolvis-commits mailing list