Index: openacs-4/packages/bug-tracker/tcl/bug-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/tcl/bug-procs-postgresql.xql,v diff -u -r1.12 -r1.13 --- openacs-4/packages/bug-tracker/tcl/bug-procs-postgresql.xql 19 Jun 2008 02:47:11 -0000 1.12 +++ openacs-4/packages/bug-tracker/tcl/bug-procs-postgresql.xql 17 Jun 2010 18:51:45 -0000 1.13 @@ -138,6 +138,7 @@ and cfsm.parent_enabled_action_id is null and st.state_id = cfsm.current_state $orderby_category_where_clause + [bug_tracker::user_bugs_only_where_clause] [template::list::filter_where_clauses -and -name "bugs"] [template::list::orderby_clause -orderby -name "bugs"] @@ -186,9 +187,10 @@ and cas.object_id = b.bug_id and cfsm.case_id = cas.case_id and cfsm.parent_enabled_action_id is null - and st.state_id = cfsm.current_state + and st.state_id = cfsm.current_state [template::list::filter_where_clauses -and -name "bugs"] $orderby_category_where_clause + [bug_tracker::user_bugs_only_where_clause] [template::list::page_where_clause -and -name bugs -key bug_id] ) q left outer join @@ -215,7 +217,6 @@ - exists (select 1 @@ -228,6 +229,5 @@ ) -