[Fusionforge-commits] r15341 - branches/Branch_5_2/src/plugins/mantisbt/view

Franck VILLAUME nerville at fusionforge.org
Sat Apr 14 15:24:13 CEST 2012


Author: nerville
Date: 2012-04-14 15:24:11 +0200 (Sat, 14 Apr 2012)
New Revision: 15341

Modified:
   branches/Branch_5_2/src/plugins/mantisbt/view/viewIssue.php
Log:
fix indent, add check for wrong issue id

Modified: branches/Branch_5_2/src/plugins/mantisbt/view/viewIssue.php
===================================================================
--- branches/Branch_5_2/src/plugins/mantisbt/view/viewIssue.php	2012-04-14 12:42:03 UTC (rev 15340)
+++ branches/Branch_5_2/src/plugins/mantisbt/view/viewIssue.php	2012-04-14 13:24:11 UTC (rev 15341)
@@ -4,6 +4,7 @@
  *
  * Copyright 2010-2011, Franck Villaume - Capgemini
  * Copyright 2010, Antoine Mercadal - Capgemini
+ * Copyright 2012, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -28,6 +29,7 @@
 global $password;
 global $gfplugins;
 global $editable;
+global $group_id;
 
 if (!isset($defect)) {
 	try {
@@ -42,9 +44,14 @@
 	}
 }
 
+if ($defect->project->id != $mantisbtConf['id_mantisbt']) {
+	echo '<div class="warning" >'. _('Woops: wrong issue id').'</div>';
+	$errorPage = true;
+}
+
 if (!isset($errorPage)) {
-    include('jumpToIssue.php');
-    echo '<h2>'._('Ticket').' #'.$idBug.'</h2>';
+	include('jumpToIssue.php');
+	echo '<h2>'._('Ticket').' #'.$idBug.'</h2>';
 	echo	'<table>';
 	echo		'<tr style="background-color: gray;">';
 	echo 			'<td width="14%" >'._('Category').'</td>';
@@ -113,10 +120,9 @@
 	echo	'</table>';
 ?>
 <script type="text/javascript">
-    jQuery(document).ready(function() {
-        jQuery("#expandable_edition").hide();
-    });
-
+	jQuery(document).ready(function() {
+		jQuery("#expandable_edition").hide();
+	});
 </script>
 <?php
 	if ($editable) {




More information about the Fusionforge-commits mailing list