Index: openacs-4/packages/workflow/tcl/action-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/tcl/action-procs.tcl,v diff -u -r1.35 -r1.36 --- openacs-4/packages/workflow/tcl/action-procs.tcl 17 Sep 2013 19:10:34 -0000 1.35 +++ openacs-4/packages/workflow/tcl/action-procs.tcl 14 Oct 2013 17:59:52 -0000 1.36 @@ -747,7 +747,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 "Action with short_name '$short_name' already exists in this workflow." } } @@ -1602,7 +1602,7 @@ # Build arrays of enabled and assigned state short names for all actions db_foreach action_enabled_in_states {} { - if {$assigned_p eq "t"} { + if {$assigned_p == "t"} { lappend action_array_${action_id}(assigned_states) $short_name lappend action_array_${action_id}(assigned_state_ids) $state_id } else {