[evolvis-commits] r18680: [#3209] Go back to Tracker Item after creating a Task Relation

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Oct 4 11:58:00 CEST 2012


Author: mirabilos
Date: 2012-10-04 11:57:59 +0200 (Thu, 04 Oct 2012)
New Revision: 18680

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
   trunk/gforge_base/evolvisforge-5.1/src/www/pm/task.php
Log:
[#3209] Go back to Tracker Item after creating a Task Relation

Modified: trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-10-04 09:57:55 UTC (rev 18679)
+++ trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-10-04 09:57:59 UTC (rev 18680)
@@ -20,8 +20,9 @@
   * Ship the Gravatar plugin for Evolvis instances
   * [#3324] Add "Hours Worked" as display column
   * [#3228] Scroll overflows in item details
+  * [#3209] Go back to Tracker Item after creating a Task Relation
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Thu, 04 Oct 2012 10:19:59 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Thu, 04 Oct 2012 10:33:48 +0200
 
 fusionforge (1:5.1.1+evolvis70.1) unstable; urgency=high
 

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/pm/task.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/pm/task.php	2012-10-04 09:57:55 UTC (rev 18679)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/pm/task.php	2012-10-04 09:57:59 UTC (rev 18680)
@@ -382,7 +382,7 @@
 	case 'addartifact' : {
 		session_require_perm ('pm', $pg->getID(), 'manager') ;
 
-		$add_artifact_id[] = getIntFromRequest('add_artifact_id');
+		$add_artifact_id = array(getIntFromRequest('add_artifact_id'));
 
 		$pt = new ProjectTask($pg,$project_task_id);
 		if (!$pt || !is_object($pt)) {
@@ -394,8 +394,8 @@
 			exit_error('addRelatedArtifacts():: '.$pt->getErrorMessage(),'pm');
 		} else {
 			$feedback=_('Successfully Added Tracker Relationship');
-			include $gfwww.'pm/browse_task.php';
-
+			session_redirect(sprintf('/tracker/t_follow.php/%d?feedback=%s',
+			    $add_artifact_id[0], urlencode($feedback)));
 		}
 		break;
 	}



More information about the evolvis-commits mailing list