View Issue Details

IDProjectCategoryView StatusLast Update
0004317mantisbtbugtrackerpublic2004-08-29 01:45
Reportertandler Assigned Tobpfennig  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.2 
Fixed in Version0.19.0rc1 
Summary0004317: "Report stay" should print out the submitted bug number together with the "report more bugs"
Description

When testing it would be helpful if the submitted bug number is also displayed in the "report stay" mode. It is already shown in the "single bug" mode, anyway. This is helpful, if the bug numbers must be recorded in the test protocols.

TagsNo tags attached.
Attached Files
patch_0004317.txt (1,582 bytes)   
Index: bug_report.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_report.php,v
retrieving revision 1.34
diff -u -r1.34 bug_report.php
--- bug_report.php	4 Aug 2004 15:02:22 -0000	1.34
+++ bug_report.php	16 Aug 2004 19:07:35 -0000
@@ -140,6 +140,9 @@
 	echo lang_get( 'operation_successful' ) . '<br />';
 
 	if ( $f_report_stay ) {
+		echo '<p>';
+		print_bracket_link( string_get_bug_view_url( $t_bug_id ), lang_get( 'view_submitted_bug_link' ) . " $t_bug_id", true );
+		echo '</p>';
 ?>
 	<form method="post" action="<?php echo string_get_bug_report_url() ?>">
 		<input type="hidden" name="category" 		value="<?php echo $f_category ?>" />



Index: print_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v
retrieving revision 1.97
diff -u -r1.97 print_api.php
--- print_api.php	14 Aug 2004 15:26:21 -0000	1.97
+++ print_api.php	16 Aug 2004 19:09:40 -0000
@@ -954,9 +954,11 @@
 	# --------------------
 	# print the bracketed links used near the top
 	# if the $p_link is blank then the text is printed but no link is created
-	function print_bracket_link( $p_link, $p_url_text ) {
+	function print_bracket_link( $p_link, $p_url_text, $p_new_window = false ) {
 		if (is_blank( $p_link )) {
 			PRINT "[&nbsp;$p_url_text&nbsp;]";
+		} else if( true == $p_new_window ) {
+			PRINT "[&nbsp;<a href=\"$p_link\" target=\"_blank\">$p_url_text</a>&nbsp;]";
 		} else {
 			PRINT "[&nbsp;<a href=\"$p_link\">$p_url_text</a>&nbsp;]";
 		}
patch_0004317.txt (1,582 bytes)   

Activities

bpfennig

bpfennig

2004-08-21 07:36

reporter   ~0007090

Because I still have no cvs commit rights, I attached the patch, so somebody can commit it.

grangeway

grangeway

2004-08-21 08:25

reporter   ~0007093

Modified slightly, and commited

Related Changesets

MantisBT: master 673887df

2004-08-21 09:27

Paul Richards


Details Diff
Fix 4317 based on Bastian Pfennigschmidt patch

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2877 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0004317
mod - bug_report.php Diff File