Index: openacs-4/packages/workflow/tcl/role-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/tcl/role-procs.tcl,v diff -u -r1.24 -r1.25 --- openacs-4/packages/workflow/tcl/role-procs.tcl 17 Sep 2013 19:10:34 -0000 1.24 +++ openacs-4/packages/workflow/tcl/role-procs.tcl 14 Oct 2013 17:59:52 -0000 1.25 @@ -714,7 +714,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 "Role with short_name '$short_name' already exists in this workflow." } }