View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008543 | mantisbt | bugtracker | public | 2007-11-03 13:22 | 2014-10-05 19:05 |
Reporter | herringm | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 1.1.0rc2 | ||||
Summary | 0008543: Resolved issues on "My View" page do not honor config value 'bug_resolved_status_threshold' | ||||
Description | Unless your configuration option sets 'closed' as the 'bug_resolved_status_threshold' the bugs listed in the "Resolved" box on the "My View" page is not complete. For instance, if 'bug_resolved_status_threshold' is set to 'resolved' then this box should show bugs that match following standard status levels: Currently, only bugs that exactly match the level of 'bug_resolved_status_threshold' are displayed. | ||||
Steps To Reproduce |
| ||||
Tags | patch | ||||
Attached Files | partial_fix_8543.patch (1,291 bytes)
Index: core/my_view_inc.php =================================================================== --- core/my_view_inc.php (revision 4716) +++ core/my_view_inc.php (working copy) @@ -94,10 +94,25 @@ ); $url_link_parameters['reported'] = 'reporter_id=' . $t_current_user_id . '&hide_status=' . $t_hide_status_default; + $t_status_arr = explode_enum_string( config_get( 'status_enum_string' ) ); + $t_available_statuses = array(); + $t_desired_statuses = array(); + foreach( $t_status_arr as $t_this_status ) { + $t_this_status_arr = explode_enum_arr( $t_this_status ); + $t_available_statuses[] = $t_this_status_arr[0]; + } + + foreach( $t_available_statuses as $t_this_available_status ) { + if ( $t_this_available_status >= $t_bug_resolved_status_threshold ) { + $t_desired_statuses[] = $t_this_available_status; + } + } + $c_filter['resolved'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), - 'show_status' => Array ( '0' => $t_bug_resolved_status_threshold ), + 'show_status' => $t_desired_statuses, + '_view_type' => 'advanced', 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => META_FILTER_ANY ), 'handler_id' => Array ( '0' => META_FILTER_ANY ), | ||||
I have attached a partial patch built against the SVN trunk. This patch updates the bugs listed in the "Resolved" box honoring the config variable 'bug_resolved_status_threshold'. It does NOT however modify the two links generated in the "Resolved" box header. I do not know enough about the filter API at this time to properly generate the url parameters required for an advanced search query that passes multiple show statuses. |
|
I have encountered the same problem. I have created a custom status that should also be considered resolved and set 'bug_resolved_status_threshold' variable to proper value. Now on My view page only bugs with my custom status set are displayed in "Resolved" box. |
|