Index: openacs-4/packages/acs-templating/tcl/element-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/element-procs.tcl,v diff -u -r1.33.2.2 -r1.33.2.3 --- openacs-4/packages/acs-templating/tcl/element-procs.tcl 3 Oct 2016 18:52:07 -0000 1.33.2.2 +++ openacs-4/packages/acs-templating/tcl/element-procs.tcl 4 Oct 2016 07:17:27 -0000 1.33.2.3 @@ -464,7 +464,7 @@ set formerror($element_id:required) [_ acs-templating.Element_is_required] if {$element(widget) in {hidden submit}} { - ns_log Warning "template::element::validate: No value for hidden/submit element $label" + ad_log warning "template::element::validate: No value for $element(widget) element $label" } } @@ -522,8 +522,8 @@ lappend v_errors $message set formerror($element_id:data) $message - if { [lsearch -exact {hidden submit} $element(widget)] } { - ns_log Warning "template::element::validate: Invalid value for hidden/submit element $label: $message" + if { $element(widget) in {hidden submit} } { + ad_log warning "template::element::validate: Invalid value for $element(widget) element $label: $message" } }