View Issue Details

IDProjectCategoryView StatusLast Update
0002535mantisbtbugtrackerpublic2003-12-13 04:52
Reporterhacker Assigned Tojfitzell  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version0.17.5 
Summary0002535: Direct linking to bugnotes in the view_all_bug_page.php page
Description

This is a small patch to add a bit of very useful functionality. In the "View Bugs" screen, you'll see a column labeled "#" which shows the number of bugnotes for each bug in the list. This numerical value isn't linked to anything.

This patch will make the number listed a link, and allow you to "Jump to Bugnotes" for that bug.

Additional Information

Around line 281 or so in view_all_inc.php, inside the 'if ($bugnote_count > 0) {...}' block, add this inside the first else (replacing what's already there):

PRINT "<a href="$g_view_bug_advanced_page?f_id=$v_id#bugnotes">$bugnote_count</a>";

TagsNo tags attached.

Activities

hacker

hacker

2002-09-19 09:24

reporter   ~0003287

Update: I just tested this and realized it's not entirely accurate, when the bug is bolded from a recent update. This addendum fixes that, just patch with the following patch:

@@ -272,9 +275,9 @@
if ($bugnote_count > 0){
if ( $v_bugnote_updated >
strtotime( "-$f_highlight_changed hours" ) ) {

  • PRINT "<span class=\"bold\">$bugnote_count</span>";
  • PRINT "<span class=\"bold\"><a href=\"$g_view_bug_advanced_page?f_id=$v_id#bugnotes\">$bugnote_count</a></span>";
    } else {
  • PRINT "$bugnote_count";
  • PRINT "<span><a href=\"$g_view_bug_advanced_page?f_id=$v_id#bugnotes\">$bugnote_count</a></span>";
    }
    } else {
    echo " ";
jfitzell

jfitzell

2002-09-26 16:10

reporter   ~0003319

Implemented in CVS