View Issue Details

IDProjectCategoryView StatusLast Update
0013559mantisbtbugtrackerpublic2011-12-03 10:29
Reporterfunta222 Assigned Todregad  
PrioritylowSeveritytweakReproducibilityalways
Status closedResolutionno change required 
PlatformPCOSWindowsOS VersionServer 2003 x64
Product Version1.2.8 
Summary0013559: Provide a Link to the issue in Summary field
Description

Summary field in 'View Issues' is only text now.
Would be nice if the issue number in Summary was a link so the whole line can be used to copy&paste into Office documents preserving the link.

Additional Information

proposed patch to bug_view_inc.php :


#
# Bug Details (screen wide fields)
#

# Summary   
if ( $tpl_show_summary ) {
# Link to issue in Summary field      
$tpl_issue_link       = string_get_bug_view_link( $f_bug_id);   
$tpl_summary_attribute = $tpl_show_summary ? string_attribute( $tpl_bug->summary ) : '';    
    echo '<tr ', helper_alternate_class(), '>';
    echo '<td class="category">', lang_get( 'summary' ), '</td>';
echo '<td colspan="5"><b>', $tpl_issue_link, '</b>: ', $tpl_summary_attribute;              
    echo '</td></tr>';
}

# Description

TagsNo tags attached.

Activities

funta222

funta222

2011-11-24 09:27

reporter   ~0030330

Related to 0013060: links from excel to mantis
http://www.mantisbt.org/bugs/view.php?id=13060

dregad

dregad

2011-11-25 12:05

developer   ~0030340

Hello,

This can easily be achieved using a custom function, without changing the core MantisBT behavior.

Please refer to the documentation http://www.mantisbt.org/docs/master-1.2.x/en/administration_guide/admin.customize.customfuncs.html

You should copy/paste custom_function_default_format_issue_summary from core/custom_function_api.php into your custom_functions_inc.php; rename it to custom_function_override_format_issue_summary and change the code as appropriate to achieve what you want, e.g.


case SUMMARY_FIELD:
$t_string = string_get_bug_view_link( $p_issue_id ) . ': ' . string_display_line_links( bug_get_field( $p_issue_id, 'summary' ) );
break;