Index: openacs-4/packages/workflow/tcl/state-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/tcl/state-procs.tcl,v diff -u -r1.17 -r1.18 --- openacs-4/packages/workflow/tcl/state-procs.tcl 17 Sep 2013 19:10:34 -0000 1.17 +++ openacs-4/packages/workflow/tcl/state-procs.tcl 14 Oct 2013 17:59:52 -0000 1.18 @@ -413,7 +413,7 @@ regsub -all {[- ]} $short_name {_} short_name regsub -all {[^a-zA-Z_0-9]} $short_name {} short_name - if { [lsearch -exact $existing_short_names $short_name] != -1 } { + if {$short_name in $existing_short_names} { error "State with short_name '$short_name' already exists in this workflow." } }