Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -r1.485.2.16 -r1.485.2.17 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 29 Oct 2015 19:43:34 -0000 1.485.2.16 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 25 Nov 2015 10:51:26 -0000 1.485.2.17 @@ -3601,8 +3601,12 @@ set lhs [string trim $lhs] set rhs_expr [string trim $rhs_expr] if {[string range $lhs 0 0] eq "_"} { + # + # comparison with field names starting with "_" + # set lhs_var [string range $lhs 1 end] set rhs [split $rhs_expr |] + my msg "check op '$op' in sql [info exists op_map($op,sql)]" if {[info exists op_map($op,sql)]} { lappend sql_clause [subst -nocommands $op_map($op,sql)] if {[my exists $lhs_var]} { @@ -3621,6 +3625,9 @@ lappend tcl_clause "\[my property $lhs\] $tcl_op($op) {$rhs}" } } else { + # + # field names refering to instance attributes + # set hleft [::xowiki::hstore::double_quote $lhs] lappend vars $lhs "" if {$op eq "contains"} { @@ -3820,7 +3827,7 @@ set init_vars $wc(vars) foreach p [$items children] { - set __ia [dict merge $init_vars [$p instance_attributes]] + $p set __ia [dict merge $init_vars [$p instance_attributes]] if {![$p expr $wc(tcl)]} {$items delete $p} } }