View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006725 | mantisbt | filters | public | 2006-02-16 16:10 | 2007-12-21 23:16 |
Reporter | mlovell | Assigned To | giallu | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.0 | ||||
Target Version | 1.1.0 | Fixed in Version | 1.1.0a4 | ||
Summary | 0006725: Filtering on "duplicate of" fails while "has duplicate" works | ||||
Description | In our issue database, Issue 57 has been marked as a duplicate of Issue 54 and closed. When viewing issues, if one sets up a filter of "has duplicate 57", the list correctly shows just Issue 54. However, if one uses the filter "duplicate of 54" and hide status "None", no issues then appear. | ||||
Additional Information | The working query for "has duplicate 57" is as follows:
The symmetric query, for "duplicate of 54" is
| ||||
Tags | No tags attached. | ||||
Nevermind. The queries are most likely fine. I didn't realize that "has duplicate" is recorded in the table distinctly from "duplicate of". Still, I would think that, when filtering on "duplicate of 54", one would find both issues which have themselves been marked as a duplicate of 54 and those which issue 54 has marked as duplicates. |
|
I think this issue is real. In my test installation it seems I reproduced the wrong behaviour by:
I think this is caused by the filter query which is testing for a single condition while it should also test for the complementary one. In other words, "duplicates of Y" should look in the relationships table issues with relationship="has duplicate" and source_id = Y (as it does now) but also issues with relationships="duplicate of" and destination_id="Y" |
|
Here is a test case: bug 0005157 in this very bug tracker is marked duplicate of 3126. The following filter for "duplicate of 3126" Does not show any results while a filter for bugs that "has duplicate 5157" correctly shows 3126 as result |
|
MantisBT: master 69c23dfe 2007-07-22 16:58 Details Diff |
Fix 6725: Filtering on "duplicate of" fails while "has duplicate" works git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4466 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0006725 |
|
mod - core/filter_api.php | Diff File |