Index: openacs-4/packages/acs-templating/www/doc/demo/list7/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/list7/index.tcl,v diff -u -r1.4.2.1 -r1.4.2.2 --- openacs-4/packages/acs-templating/www/doc/demo/list7/index.tcl 10 Sep 2015 08:22:15 -0000 1.4.2.1 +++ openacs-4/packages/acs-templating/www/doc/demo/list7/index.tcl 25 May 2016 08:52:11 -0000 1.4.2.2 @@ -15,12 +15,18 @@ @creation-date 2000-10-23 @cvs-id $Id$ } -query { - orderby:optional - color_filter_value:optional + orderby:token,notnull,optional + color_filter_value:optional,trim,notnull } -properties { - notes:multirow - context:onevalue - create_p:onevalue + notes:multirow + context:onevalue + create_p:onevalue +} -validate { + valid_color -requires color_filter_value { + if {$color_filter_value ni {blue green purple red orange yellow}} { + ad_complain "Invalid value: $color_filter_value" + } + } } set package_id [ad_conn package_id]