View Issue Details

IDProjectCategoryView StatusLast Update
0004884mantisbtfeaturepublic2014-10-05 05:39
Reportermehrwert Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Product Version0.19.1 
Summary0004884: Feature: Add link to issue detail on summary title
Description

For better usability we would like to see a feature added to Mantis: A link to the issue detail on the issue summary title. Works for us since 0.18.x

See provided patch files for example. This patches will modify the string_get_bug_view_link and print_bug_link function.

Tagspatch
Attached Files
print_api.php.diff (603 bytes)   
--- mantis-0.19.1/core/print_api.php	Thu Oct 14 02:35:06 2004
+++ mantis-0.19.1-mw/core/print_api.php	Fri Nov 19 22:13:31 2004
@@ -826,8 +826,8 @@
 	# --------------------
 	# prints a link to VIEW a bug given an ID
 	#  account for the user preference and site override
-	function print_bug_link( $p_bug_id, $p_detail_info = true ) {
-		PRINT string_get_bug_view_link( $p_bug_id, null, $p_detail_info );
+	function print_bug_link( $p_bug_id, $p_detail_info = true, $p_linktext = null ) {
+		PRINT string_get_bug_view_link( $p_bug_id, null, $p_detail_info, $p_linktext );
 	}
 
 	# --------------------
print_api.php.diff (603 bytes)   
string_api.php.diff (893 bytes)   
--- mantis-0.19.1/core/string_api.php	Tue Sep 21 10:35:10 2004
+++ mantis-0.19.1-mw/core/string_api.php	Fri Nov 19 21:37:17 2004
@@ -396,7 +396,7 @@
 	# --------------------
 	# return an href anchor that links to a bug VIEW page for the given bug
 	#  account for the user preference and site override
-	function string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info = true ) {
+	function string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info = true, $p_linktext = null ) {
 		$t_link = "";
 
 		if ( bug_exists( $p_bug_id ) ) {
@@ -406,7 +406,7 @@
 			if ( $p_detail_info ) {
 				$t_link .=  ' title="[' . $t_status . '] ' . $t_summary . '"';
 			}
-			$t_link .= '>' . bug_format_id( $p_bug_id ) . '</a>';
+			$t_link .= '>' . (($p_linktext) ? $p_linktext : bug_format_id( $p_bug_id )) . '</a>';
 		} else {
 			$t_link = bug_format_id( $p_bug_id );
 		}
string_api.php.diff (893 bytes)   
view_all_inc.php.diff (398 bytes)   
--- mantis-0.19.1/view_all_inc.php	Sun Oct 17 18:38:18 2004
+++ mantis-0.19.1-mw/view_all_inc.php	Fri Nov 19 22:41:38 2004
@@ -328,7 +328,8 @@
 	<td class="left"> <?php 
 		# -- Summary --
 
-		echo $v_summary;
+		echo print_bug_link( $v_id, true, $v_summary );
+		
 		if ( VS_PRIVATE == $v_view_state ) {
 			printf( ' <img src="%s" alt="(%s)" title="%s" />'
 				, $t_icon_path . 'protected.gif'
view_all_inc.php.diff (398 bytes)   

Relationships

related to 0007389 closedgiallu Summary field does not link to other issues. Related to 0004884 

Activities