Index: openacs-4/packages/simulation/tcl/template-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/tcl/template-procs.tcl,v diff -u -N -r1.71.2.1 -r1.71.2.2 --- openacs-4/packages/simulation/tcl/template-procs.tcl 31 Oct 2006 10:13:02 -0000 1.71.2.1 +++ openacs-4/packages/simulation/tcl/template-procs.tcl 2 Nov 2006 10:44:12 -0000 1.71.2.2 @@ -1585,11 +1585,21 @@ where workflow_id = :workflow_id and trigger_type = 'init' and parent_action_id = :action_id"] } { - set ret_val 0 - break + return 0 } } + if { [db_string get_empty_roles " + select count(*) + from sim_roles sr, + workflow_roles wr + where sr.character_id is null + and sr.role_id = wr.role_id + and wr.workflow_id = :workflow_id"]} { + + return 0 + } + return $ret_val }