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

Sabri LABBENE labbenes at fusionforge.org
Tue Apr 26 14:55:08 CEST 2011


Author: labbenes
Date: 2011-04-26 14:55:08 +0200 (Tue, 26 Apr 2011)
New Revision: 13215

Modified:
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php
Log:
update data to be added in delegated creation UI.

Modified: trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php
===================================================================
--- trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php	2011-04-26 12:53:13 UTC (rev 13214)
+++ trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php	2011-04-26 12:55:08 UTC (rev 13215)
@@ -321,10 +321,12 @@
 			// construct data for tracker extra fields and their values.
 			$extrafields = $at->getExtraFields();
 			$keys = array_keys($extrafields);
+
 			for ($k = 0; $k<count($keys); $k++){
 				$i = $keys[$k];
+
 				if ($extrafields[$i]['field_type'] == ARTIFACT_EXTRAFIELDTYPE_SELECT){
-					$efelements = $at->getExtraFieldElements($extrafields[$i]);
+					$efelements = $at->getExtraFieldElements($extrafields[$i]['extra_field_id']);
 					foreach ($efelements as $key => $value){
 						$data[$extrafields[$i]['field_name']][] = $efelements[$key]['element_name'];
 					}
@@ -332,14 +334,10 @@
 					$data[$extrafields[$i]['field_name']] = '';
 				}
 			}
-
 			// Add assigned to data. We use default FusionForge UI for assigned_to selectBox. 
 			$ath = new ArtifactTypeHtml($group,$tracker);
 			$data['assigned_to'] = $ath->technicianBox('assigned_to'); 
 
-			// Add priority data. We use default FusionForge UI for priority selectBox.
-			$data['priority'] = build_priority_select_box('priority');
-						
 			// Add summary and detailed description.
 			$data['summary'] = '';
 			$data['description'] = '';
@@ -596,7 +594,7 @@
 	 */
 	public function createChangeRequest($creation_params){
 		$cm_request = $creation_params['new']->container;
-
+		print_r($cm_request);
 		$grp = group_get_object($creation_params['project']);
 
 		if(!$grp || !is_object($grp)){




More information about the Fusionforge-commits mailing list