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.73 -r1.74 --- openacs-4/packages/simulation/tcl/template-procs.tcl 23 Mar 2018 23:53:02 -0000 1.73 +++ openacs-4/packages/simulation/tcl/template-procs.tcl 25 Apr 2018 19:47:48 -0000 1.74 @@ -65,9 +65,9 @@ # Parse column values switch $operation { insert - update { - set update_clauses [list] - set insert_names [list] - set insert_values [list] + set update_clauses {} + set insert_names {} + set insert_values {} # Handle columns in the sim_simulations table foreach attr { @@ -126,7 +126,7 @@ } } # Handle auxiliary rows - array set aux [list] + array set aux {} foreach attr { enrolled invited auto_enroll } { @@ -575,8 +575,8 @@ simulation::template::get -workflow_id $workflow_id -array sim_template set admin_user_id [ad_conn user_id] - set enroll_user_list [list] - set invite_email_list [list] + set enroll_user_list {} + set invite_email_list {} db_foreach select_enrolled_and_invited_users { select distinct pamm.member_id as user_id, cu.email, @@ -994,7 +994,7 @@ # Loop over each role in the case and decide which users to assign it array unset row - array set row [list] + array set row {} foreach role_id [array names roles] { array unset one_role array set one_role $roles($role_id) @@ -1016,12 +1016,12 @@ #ns_log Notice "simulation::template::cast_users_in_case case_id=$case_id - beginning of role loop role_id=$role_id n_users_to_assign=$n_users_to_assign group_members=[array get group_members]" - set assignees [list] + set assignees {} for { set i 0 } { $i < $n_users_to_assign } { incr i } { set user_was_cast_p 0 # Get the list of users in groups mapped to this role - set role_group_users [list] + set role_group_users {} foreach group_id [util::randomize_list $one_role(parties)] { set role_group_users [concat $role_group_users $group_members($group_id)] }