[Fusionforge-commits] r11789 - trunk/src/plugins/oslc/include/oslc-zend/application/controllers

Sabri LABBENE labbenes at libremir.placard.fr.eu.org
Mon Dec 13 15:05:42 CET 2010


Author: labbenes
Date: 2010-12-13 15:05:42 +0100 (Mon, 13 Dec 2010)
New Revision: 11789

Modified:
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php
Log:
Fix params and fix forwarding to UIs views.

Modified: trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php
===================================================================
--- trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php	2010-12-13 14:03:40 UTC (rev 11788)
+++ trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php	2010-12-13 14:05:42 UTC (rev 11789)
@@ -127,10 +127,12 @@
 		// Handle creation UI access
 		elseif (isset($params['ui']) && $params['ui'] == 'creation' && isset($params['project']) && isset($params['tracker'])){
 			$this->_forward('showCreationUi');
+			return;
 		}
 		// Handle selection UI access 
 		elseif (isset($params['ui']) && $params['ui'] == 'selection' && isset($params['project']) && isset($params['tracker'])){
 			$this->_forward('showSelectionUi');
+			return;
 		}
 		
 		// Now, do the OSLC-CM resources access work

Modified: trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php
===================================================================
--- trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php	2010-12-13 14:03:40 UTC (rev 11788)
+++ trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php	2010-12-13 14:05:42 UTC (rev 11789)
@@ -310,6 +310,9 @@
 	 */
 	public function getDataForCreationUi($project, $tracker) {
 		$data = array();
+		$data['project'] = $project;
+		$data['tracker'] = $tracker;
+
 		$group = group_get_object($project);
 		if (!$at = new ArtifactType($group, $tracker)){
 			throw new Exception('Error : Could not instanciate project Tracker');
@@ -355,6 +358,9 @@
 	 */
 	public function getDataForSelectionUi($project, $tracker) {
 		$data = array();
+		$data['project'] = $project;
+		$data['tracker'] = $tracker;
+
 		$group = group_get_object($project);
 		if (!$at = new ArtifactType($group, $tracker)){
 			throw new Exception('Error : Could not instanciate project Tracker');




More information about the Fusionforge-commits mailing list