Dependency Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0008453 | mantisbt | bugtracker | public | 2007-10-09 15:08 | 2009-06-26 12:07 |
| Reporter | jreese | Assigned To | jreese | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.1.0rc1 | ||||
| Target Version | 1.1.0rc2 | Fixed in Version | 1.1.0rc2 | ||
| Summary | 0008453: Sub-project My View highlights all issues as recent | ||||
| Description | The My View page incorrectly highlights all issues as recent when viewing the page with a sub-project selected. The problem is due to My View page incorrectly using the user's default filter information (rather than the view's filter), which returns as boolean false when a sub-project is selected. There are really two problems at play here:
The solution for the My View page at least is to check for boolean false from current_user_get_bug_filter() and to set a blank array in its place, and then to merge the user's filter with the views' filters, with the user's filter taking precedence. This solution is attached as a patch, but will be submitted to CVS shortly. The solution for current_user_get_bug_filter() is not yet known by me. | ||||
| Steps To Reproduce | Select a sub-project. | ||||
| Tags | No tags attached. | ||||
| Attached Files | mantis_myview_2007-10-09.patch (749 bytes)
diff --git a/core/my_view_inc.php b/core/my_view_inc.php
index c8f311b..9ac6170 100644
--- a/core/my_view_inc.php
+++ b/core/my_view_inc.php
@@ -20,6 +20,7 @@
?>
<?php
$t_filter = current_user_get_bug_filter();
+ $t_filter = $t_filter === false ? array() : $t_filter;
$t_sort = $t_filter['sort'];
$t_dir = $t_filter['dir'];
@@ -157,6 +158,7 @@
$url_link_parameters['verify'] = 'reporter_id=' . $t_current_user_id . '&show_status=' . $t_bug_resolved_status_threshold;
$rows = filter_get_bug_rows ( $f_page_number, $t_per_page, $t_page_count, $t_bug_count, $c_filter[$t_box_title] );
+ $t_filter = array_merge( $c_filter[$t_box_title], $t_filter );
$box_title = lang_get( 'my_view_title_' . $t_box_title );
?>
| ||||
| related to | 0008862 | acknowledged | View Issues highlights all sub-project issues as recent |
|
MantisBT: master 0ce6b039 2007-10-09 16:10 Details Diff |
Fix 0008453: My View incorrectly handles user vs view filters for sub-projects. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4630 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0008453 |
|
| mod - core/my_view_inc.php | Diff File | ||
|
MantisBT: master-1.1.x 7c06970b 2007-10-09 16:10 Details Diff |
Fix 0008453: My View incorrectly handles user vs view filters for sub-projects. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/branches/BRANCH_1_1_0@4630 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0008453 |
|
| mod - core/my_view_inc.php | Diff File | ||
related to
child of
duplicate of