View Issue Details

IDProjectCategoryView StatusLast Update
0029181mantisbtbugtrackerpublic2022-04-13 12:10
Reporterit_fred Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.23.0 
Target Version2.25.3Fixed in Version2.25.3 
Summary0029181: 'format_issue_summary' custom function not called from View Issue Details page
Description

(with case SUMMARY_FIELD)

If you want custom "summary ID view" with the function "custom_function_override_format_issue_summary" (config\custom_functions_inc.php)
then "none change".

Moreover, without custom, the function "function custom_function_default_format_issue_summary" (core\custom_function_api.php)
this function seems not be called, for the "summary ID view"

Additional Information

workarround :

Patch "bug_view_inc.php" line 545 :

Change the line:

echo '<td class="bug-summary" colspan="5">', string_display_line( bug_format_id( $f_issue_id ) . ': ' . $t_issue['summary'] ), '</td>';

By:

echo '<td class="bug-summary" colspan="5">', string_display_line( bug_format_summary( $f_issue_id, SUMMARY_FIELD ) ), '</td>';

The function "bug_format_summary" call "format_issue_summary" (helper_call_custom_function)

(
with the previous version as Mantis 2.10.0, in "bug_view_inc.php", you had :
$t_summary = $t_show_summary ? bug_format_summary( $f_bug_id, SUMMARY_FIELD ) : '';
)

TagsNo tags attached.

Relationships

related to 0025902 closedvboctor Implement IssueViewPageCommand to separate logic from rendering of issue view page 

Activities

dregad

dregad

2021-10-16 05:18

developer   ~0065920

Bug is confirmed. It is a regression from commit MantisBT master 2b163046 when IssueViewCommand was introduced.

dregad

dregad

2021-10-16 06:18

developer   ~0065921

PR https://github.com/mantisbt/mantisbt/pull/1783

Related Changesets

MantisBT: master 2b163046

2019-06-02 20:50

vboctor


Details Diff
Add IssueViewCommand and use it in bug_view_inc.php Affected Issues
0025902, 0029181
mod - bug_view_inc.php Diff File
add - core/commands/IssueViewCommand.php Diff File

MantisBT: master-2.25 619e9e4f

2021-10-16 01:43

dregad


Details Diff
Use custom function to display issue summary

Introduction of IssueViewCommand [1] removed the call to
'format_issue_summary' custom function from View Issue Details page
(bug_view_inc.php).

This fixes the regression, restoring earlier behavior of calling
bug_format_summary().

Fixes 0029181

[1]: issue 0025902, commit 2b163046849d3445894537f7a7b4762edd41ff8b
Affected Issues
0022784, 0025902, 0029181
mod - bug_view_inc.php Diff File