Index: core/filter_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v
retrieving revision 1.122.2.2.2.3.2.5.2.3.2.1
diff -u -r1.122.2.2.2.3.2.5.2.3.2.1 filter_api.php
--- core/filter_api.php 6 May 2006 03:01:07 -0000 1.122.2.2.2.3.2.5.2.3.2.1
+++ core/filter_api.php 25 Aug 2006 12:51:22 -0000
@@ -311,6 +311,16 @@
}
}
+ # Sx: Hide child issues
+ if( $t_filter['show_children'] == 'off' ) {
+ $t_relationship_type = 2;
+ $t_sub_query_relationship = "SELECT DISTINCT $t_bug_table.id FROM $t_bug_relationship_table, $t_bug_table WHERE ($t_bug_table.id=$t_bug_relationship_table.destination_bug_id) AND ($t_bug_relationship_table.relationship_type=$t_relationship_type)";
+
+ $t_filter_children = "($t_bug_table.id NOT IN ($t_sub_query_relationship))";
+
+ array_push( $t_where_clauses, $t_filter_children);
+ }
+
# show / hide status
# take a list of all available statuses then remove the ones that we want hidden, then make sure
# the ones we want shown are still available
@@ -1374,9 +1384,11 @@