Index: openacs-4/packages/simulation/www/siminst/simulation-new.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/siminst/simulation-new.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/simulation/www/siminst/simulation-new.tcl 12 Jan 2004 13:24:57 -0000 1.5 +++ openacs-4/packages/simulation/www/siminst/simulation-new.tcl 23 Jan 2004 13:18:43 -0000 1.6 @@ -49,11 +49,9 @@ from workflow_roles where workflow_id = w.workflow_id) as number_of_roles, (select count(*) - from workflow_actions wa + from workflow_actions wa where wa.workflow_id = w.workflow_id - and not exists (select 1 - from workflow_initial_action - where action_id = wa.action_id)) as number_of_tasks + and wa.trigger_type = 'user') as number_of_tasks from sim_simulations ss, workflows w where ss.simulation_id = w.workflow_id