[Fusionforge-commits] r13079 - in trunk/src/plugins/mantisbt: view www

Franck VILLAUME nerville at fusionforge.org
Mon Apr 11 22:09:45 CEST 2011


Author: nerville
Date: 2011-04-11 22:09:44 +0200 (Mon, 11 Apr 2011)
New Revision: 13079

Modified:
   trunk/src/plugins/mantisbt/view/adminuser.php
   trunk/src/plugins/mantisbt/view/viewIssues.php
   trunk/src/plugins/mantisbt/www/index.php
Log:
rename mantisbtUserConf -> mantisbtConf

Modified: trunk/src/plugins/mantisbt/view/adminuser.php
===================================================================
--- trunk/src/plugins/mantisbt/view/adminuser.php	2011-04-11 19:49:11 UTC (rev 13078)
+++ trunk/src/plugins/mantisbt/view/adminuser.php	2011-04-11 20:09:44 UTC (rev 13079)
@@ -27,7 +27,7 @@
 /* main display */
 global $HTML;
 global $mantisbt;
-global $mantisbtUserConf;
+global $mantisbtConf;
 
 echo $HTML->boxTop(_('Manage your account'));
 echo '<form method="POST" Action="?type=user&pluginname='.$mantisbt->name.'&action=updateuserConf">';
@@ -35,11 +35,11 @@
 echo '<tr><td><label id="mantisbtinit-user" ';
 if ($use_tooltips)
 	echo 'title="'._('Specify your mantisbt user.').'"';
-echo ' >MantisBT User</label></td><td><input type="text" size="50" maxlength="255" name="mantisbt_user" value="'.$mantisbtUserConf['user'].'" /></td></tr>';
+echo ' >MantisBT User</label></td><td><input type="text" size="50" maxlength="255" name="mantisbt_user" value="'.$mantisbtConf['user'].'" /></td></tr>';
 echo '<tr><td><label id="mantisbtinit-password" ';
 if ($use_tooltips)
 	echo 'title="'._('Specify the password of this user.').'"';
-echo ' >MantisBT Password</label></td><td><input type="text" size="50" maxlength="255" name="mantisbt_password" value="'.$mantisbtUserConf['password'].'" /></td></tr>';
+echo ' >MantisBT Password</label></td><td><input type="text" size="50" maxlength="255" name="mantisbt_password" value="'.$mantisbtConf['password'].'" /></td></tr>';
 echo '</table>';
 echo '<input type="submit" value="'._('Update').'" />';
 echo '</form>';

Modified: trunk/src/plugins/mantisbt/view/viewIssues.php
===================================================================
--- trunk/src/plugins/mantisbt/view/viewIssues.php	2011-04-11 19:49:11 UTC (rev 13078)
+++ trunk/src/plugins/mantisbt/view/viewIssues.php	2011-04-11 20:09:44 UTC (rev 13079)
@@ -4,6 +4,7 @@
  *
  * Copyright 2009, Fabien Dubois - Capgemini
  * Copyright 2009-2011, Franck Villaume - Capgemini
+ * Copyright 2011, Franck Villaume - TrivialDev
  * Copyright 2010, Antoine Mercadal - Capgemini
  * http://fusionforge.org
  *
@@ -87,7 +88,7 @@
 	$listBug = array();
 	try {
 		if ($type == "user"){
-			$idsBugAll = $clientSOAP->__soapCall('mc_issue_get_filtered_by_user', array("username" => $username, "password" => $password, "filter" => $bugfilter ));
+			$idsBugAll = $clientSOAP->__soapCall('mc_issue_get_filtered_by_user', array("username" => $username, "password" => $password, "filter" => $bugfilter));
 		} else if ($type == "group"){
 			$idsBugAll = $clientSOAP->__soapCall('mc_project_get_issue_headers', array("username" => $username, "password" => $password, "project_id" => $mantisbtConf['id_mantisbt'],  "page_number" => -1, "per_page" => -1, "filter" => $bugfilter));
 		}

Modified: trunk/src/plugins/mantisbt/www/index.php
===================================================================
--- trunk/src/plugins/mantisbt/www/index.php	2011-04-11 19:49:11 UTC (rev 13078)
+++ trunk/src/plugins/mantisbt/www/index.php	2011-04-11 20:09:44 UTC (rev 13079)
@@ -174,12 +174,11 @@
 		$idNote = getStringFromRequest('idNote');
 		$page = getStringFromRequest('page');
 
-
 		if ($view != 'inituser' && $action != 'inituser') {
-			$mantisbtUserConf = $mantisbt->getUserConf($user->getID());
-			if ($mantisbtUserConf) {
-				$username = $mantisbtUserConf['user'];
-				$password = $mantisbtUserConf['password'];
+			$mantisbtConf = $mantisbt->getUserConf($user->getID());
+			if ($mantisbtConf) {
+				$username = $mantisbtConf['user'];
+				$password = $mantisbtConf['password'];
 			}  else {
 				$warning_msg = _('Your mantisbt user is not initialized.');
 				$redirect_url = '/plugins/'.$mantisbt->name.'/?type=user&pluginname='.$mantisbt->name.'&view=inituser&warning_msg='.urlencode($warning_msg);




More information about the Fusionforge-commits mailing list