How to make summary description as a link to bug id?

Get help from other users here.

Moderators: Contributor, Developer

How to make summary description as a link to bug id?

Postby calico123 » Nov 09, 2016 7:08 am

Hi,

I wanted to modify in the View Issue page the summary column to act also like link to bug view page (similar to bug_id in the ID column). Is it possible? I searched almost all php files and didn't find line where I can modify it. In the my_view_inc.php it was easy to modify, I founded the line with variable $t_summary and paste there this code:

Code: Select all
echo '<a href="' . string_get_bug_view_url( $t_bug->id ) . '"> '.$t_summary.' </a>';


To be consistent I want to do the same for the View Issue page, where user can click on summary of the chosen bug and will be moved to bug page.
Attachments
Screenshot_2.jpg
Screenshot_2.jpg (146.38 KiB) Viewed 2547 times
calico123
 
Posts: 1
Joined: Nov 09, 2016 6:52 am

Re: How to make summary description as a link to bug id?

Postby Tagirijus » Dec 06, 2017 7:36 am

Hey there,

I also wanted to change MantisBT to show the summary as a link to this bug and I also found your thread, hehe. Luckily I managed to change the code to do this - in MantisBT 2.5.1.

You have to change the file core/columns_api.php, the function print_column_summary in line 1505 to:

Code: Select all
echo '<td class="column-summary"><a href="view.php?id=' . $p_bug->id . '">' . $t_summary . '</a></td>';


It works here. Unfortunately this probably will be gone after you update to a new mantis version, I guess.

Hope this helps hopeless people like me, who will find this thread, but now with a helpful reply instead of no reply. ;)
Tagirijus
 
Posts: 5
Joined: Dec 05, 2017 5:19 am


Return to Help

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 17 guests