[Fusionforge-commits] r12416 - in trunk/src/plugins/mantisbt: action view/admin

Franck VILLAUME nerville at fusionforge.org
Mon Feb 28 13:00:39 CET 2011


Author: nerville
Date: 2011-02-28 13:00:37 +0100 (Mon, 28 Feb 2011)
New Revision: 12416

Modified:
   trunk/src/plugins/mantisbt/action/addVersion.php
   trunk/src/plugins/mantisbt/view/admin/viewVersion.php
Log:
fix manage version

Modified: trunk/src/plugins/mantisbt/action/addVersion.php
===================================================================
--- trunk/src/plugins/mantisbt/action/addVersion.php	2011-02-28 11:00:40 UTC (rev 12415)
+++ trunk/src/plugins/mantisbt/action/addVersion.php	2011-02-28 12:00:37 UTC (rev 12416)
@@ -32,9 +32,9 @@
 if (isset($_POST['version']) && !empty($_POST['version'])) {
 	$versionStruct = array();
 	$versionStruct['name'] = $_POST['version'];
-	$versionStruct['project_id'] = $mantisbtConf['id_mantis'];
-	$versionStruct['released'] = '';
-	$versionStruct['description'] = '';
+	$versionStruct['project_id'] = $mantisbtConf['id_mantisbt'];
+	$versionStruct['released'] = 0;
+	$versionStruct['description'] = $_POST['description'];
 	$versionStruct['date_order'] = '';
 	try {
 		if (!isset($clientSOAP))

Modified: trunk/src/plugins/mantisbt/view/admin/viewVersion.php
===================================================================
--- trunk/src/plugins/mantisbt/view/admin/viewVersion.php	2011-02-28 11:00:40 UTC (rev 12415)
+++ trunk/src/plugins/mantisbt/view/admin/viewVersion.php	2011-02-28 12:00:37 UTC (rev 12416)
@@ -51,7 +51,7 @@
 		echo		'<td class="FullBoxTitle">'._('Type').'</td>';
 		echo 		'<td class="FullBoxTitle">'._('Action').'</td>';
 		echo	'</tr>';
-		$i = 0;
+		$i = 1;
 		foreach ($listVersions as $key => $version){
 			echo '<tr '.$HTML->boxGetAltRowStyle($i).'">';
 			echo '<td class="InText">'.$version->name.'</td>';
@@ -65,11 +65,7 @@
 				echo '<td class="InText">Milestone</td>';
 			}
 			echo '<td>';
-			print'<div style="float:left"><img src="'.util_make_url('themes/gforge/images/bouton_gauche.png').'"></img></div>
-				<div style="background: url('.util_make_url('themes/gforge/images/bouton_centre.png').');vertical-align:top;display:inline;font-size:15px">
-				<a href="?type='.$type.'&id='.$id.'&pluginname='.$pluginname.'&view=editVersion&idVersion='.$version->id.'" style="color:white;font-size:0.8em;font-weight:bold;">Modifier</a>
-				</div>
-				<div style="display:inline"><img src="'.util_make_url('themes/gforge/images/bouton_droit.png').'"></img></div>';
+			echo '<a href="?type=admin&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&view=editVersion&idVersion='.$version->id.'" ">'._('Update').'</a>';
 			echo '</td></tr>';
 			$i++;
 		}
@@ -79,5 +75,4 @@
 	}
 	echo $HTML->boxBottom();
 }
-
 ?>




More information about the Fusionforge-commits mailing list