again, like in my other recent threads, I want to customize MantisBT without the need to change core files. I know how to change this thing with modifying the core files, but my question here is: if it is possible (and how) to do it with configuration or plugins only:
I want the bug / issue list to have a hyperlink to the issue on the summary text.
I did it by modifying the columns_api.php and the function print_column_summary by changing the line:
Code: Select all
echo '<td class="column-summary">' . $t_summary . '</td>';
Code: Select all
echo '<td class="column-summary"><a href="view.php?id=' . $p_bug->id . '">' . $t_summary . '</a></td>';
Another thing is that I'd like to have a link to the "all projects" next to the category. For that I modified the columns_api.php again and changed the function print_column_category_id this way:
This block:
Code: Select all
# type project name if viewing 'all projects' or if issue is in a subproject
if( ON == config_get( 'show_bug_project_links' ) && helper_get_current_project() != $p_bug->project_id ) {
echo '<span class="small project">[';
print_view_bug_sort_link( string_display_line( $t_project_name ), 'project_id', $t_sort, $t_dir, $p_columns_target );
echo ']</span>  ';
}
to this:
Code: Select all
# type project name if viewing 'all projects' or if issue is in a subproject
if( ON == config_get( 'show_bug_project_links' ) && helper_get_current_project() != $p_bug->project_id ) {
echo '<span class="small project">[';
print_view_bug_sort_link( string_display_line( $t_project_name ), $p_bug->project_id, $t_sort, $t_dir, $p_columns_target );
echo ']</span>  ';
} else {
echo '<span class="small project">[';
print_view_bug_sort_link( string_display_line( 'All' ), '0', $t_sort, $t_dir, $p_columns_target );
echo ']</span>  ';
}