Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -r1.284.2.172 -r1.284.2.173 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 17 Sep 2021 19:33:56 -0000 1.284.2.172 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 16 Oct 2021 14:45:39 -0000 1.284.2.173 @@ -5272,6 +5272,7 @@ {parent_id *} {form} {where} + {unless} {entry_label _title} {orderby title} } @@ -5301,11 +5302,10 @@ return } - set wc {tcl true h "" vars "" sql ""} - if {[info exists :where]} { - set wc [dict merge $wc [::xowiki::FormPage filter_expression ${:where} &&]] - #:msg "where '${:where}' => wc=$wc" - } + set filters [::xowiki::FormPage compute_filter_clauses \ + {*}[expr {[info exists :unless] ? [list -unless ${:unless}] : ""}] \ + {*}[expr {[info exists :where] ? [list -where ${:where}] : ""}] \ + ] set from_package_ids {} set package_path [::${:package_id} package_path] @@ -5322,7 +5322,8 @@ -base_item_ids ${:form_object_item_ids} \ -form_fields [list] \ -publish_status ready \ - -h_where $wc \ + -h_where [dict get $filters wc] \ + -h_unless [dict get $filters uc] \ -parent_id ${:parent_id} \ -package_id ${:package_id} \ -orderby title \