Defect #12846
opensub-issues being rendered under wrong parent issue
0%
Description
I have a group of issues that seem to be rendering as associated with the wrong parent issue.
This query on the database returns zero items:
select count(0) from issues where root_id=19649 or parent_id= 19649 ;
Rendering the URL: http://my_redmine/issues/19649 shows this list of sub-tasks associated with this issue.
19547, 19121, 19099, 18966, 18956, 18825, 18572, 17887, 17799, 17795, 17601, 18532, 20011
Yet, if I plug the ids of those listed sub-tasks into a database query like this:
select id, parent_id, root_id from issues where id in (19547, 19121, 19099, 18966, 18956, 18825, 18572, 17887, 17799, 17795, 17601, 18532, 20011);
I get this result:
+ -------+-------------+---------+
| id | parent_id | root_id |
+ -------+-------------+---------+
17601 | 19925 | 19925
17795 | 19925 | 19925
17799 | 19925 | 19925
17887 | 19925 | 19925
18532 | 19925 | 19925
18572 | 19925 | 19925
18825 | 19925 | 19925
18956 | 19925 | 19925
18966 | 19925 | 19925
19099 | 19925 | 19925
19121 | 19925 | 19925
19547 | 19925 | 19925
20011 | 19925 | 19925
+-------+-----------+---------+
13 rows in set (0.00 sec)
19649 is also a sub-task of 19925 but 19649 is not a parent for any subtask. It would seem that rendering 19649 should show only that issue without any sub-tasks.
I am running tagged version 2.0.4. Is this the expected behavior or perhaps a bug?
Related issues