Index: openacs-4/contrib/packages/simulation/www/siminst/simulation-casting-3.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/siminst/Attic/simulation-casting-3.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/contrib/packages/simulation/www/siminst/simulation-casting-3.tcl 20 Jan 2004 12:41:03 -0000 1.22 +++ openacs-4/contrib/packages/simulation/www/siminst/simulation-casting-3.tcl 21 Jan 2004 15:55:36 -0000 1.23 @@ -148,27 +148,23 @@ } } - if { [string equal $sim_template(enroll_type) "closed"] || [empty_string_p $sim_template(enroll_type)] } { - # In closed enrollment we require the admin to map all groups to roles - - set uncast_mapped_groups [db_list uncast_mapped_groups_count " - select g.group_name - from sim_party_sim_map spsm, - groups g - where spsm.simulation_id = :workflow_id - and g.group_id = spsm.party_id - and not exists (select 1 - from sim_role_party_map srpm, - workflow_roles wr - where srpm.role_id = wr.role_id - and wr.workflow_id = :workflow_id - and srpm.party_id = spsm.party_id - ) + set uncast_mapped_groups [db_list uncast_mapped_groups_count " + select g.group_name + from sim_party_sim_map spsm, + groups g + where spsm.simulation_id = :workflow_id + and g.group_id = spsm.party_id + and not exists (select 1 + from sim_role_party_map srpm, + workflow_roles wr + where srpm.role_id = wr.role_id + and wr.workflow_id = :workflow_id + and srpm.party_id = spsm.party_id + ) "] - if { [llength $uncast_mapped_groups] > 0 } { - template::form::set_error actors parties_$role_id "The following groups are not mapped to any roles: [join $uncast_mapped_groups ", "]." - break - } + if { [llength $uncast_mapped_groups] > 0 } { + template::form::set_error actors parties_$role_id "The following groups are not mapped to any roles: [join $uncast_mapped_groups ", "]." + break } simulation::template::enroll_and_invite_users -workflow_id $workflow_id