Index: openacs-4/packages/acs-templating/tcl/data-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/data-procs.tcl,v diff -u -r1.23.2.4 -r1.23.2.5 --- openacs-4/packages/acs-templating/tcl/data-procs.tcl 7 Oct 2019 16:49:45 -0000 1.23.2.4 +++ openacs-4/packages/acs-templating/tcl/data-procs.tcl 14 Oct 2019 16:07:53 -0000 1.23.2.5 @@ -524,14 +524,13 @@ message_ref } { Checks whether the submitted value is contained in the list of values provided via - the "-options" parameter of "::template::element::create". If the - parameter "-options" is not set on the element, the value is validated as "text". + the "-options" parameter of "::template::element::create". If it is set an + error is thrown. @param value_ref Reference variable to the submitted value @param message_ref Reference variable for returning an error message @see template::element::create - @see template::data::validate::text @return True (1) if valid, false (0) if not } { @@ -547,9 +546,8 @@ return 0 } } else { - ad_log Warning "template::element::validate::oneof: Parameter \"-options\"\ - not specified for element \"$element(name)\" in form\ - \"$element(form_id)\". All user submitted input will be accepted!" + error "template::element::validate::oneof: No options specified for \ + element $element_id in form $form_id" } return 1