Index: openacs-4/contrib/obsolete-packages/acs-workflow/www/admin/task-assignment-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/obsolete-packages/acs-workflow/www/admin/task-assignment-add.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/contrib/obsolete-packages/acs-workflow/www/admin/task-assignment-add.tcl 13 Mar 2001 22:59:27 -0000 1.1 +++ openacs-4/contrib/obsolete-packages/acs-workflow/www/admin/task-assignment-add.tcl 19 Nov 2001 18:29:29 -0000 1.2 @@ -7,17 +7,23 @@ } { workflow_key transition_key - assign_transition_key + role_key {return_url ""} } db_transaction { - set num_rows [db_string num_rows {select count(*) from wf_transition_assignment_map where workflow_key = :workflow_key and transition_key = :transition_key and assign_transition_key = :assign_transition_key}] + db_1row num_rows { + select count(*) as num_rows + from wf_transition_role_assign_map + where workflow_key = :workflow_key + and transition_key = :transition_key + and assign_role_key = :role_key + } if { $num_rows == 0 } { db_dml make_manual { - insert into wf_transition_assignment_map (workflow_key, transition_key, assign_transition_key) - values (:workflow_key, :transition_key, :assign_transition_key) + insert into wf_transition_role_assign_map (workflow_key, transition_key, assign_role_key) + values (:workflow_key, :transition_key, :role_key) } } }