Index: openacs-4/contrib/packages/simulation/lib/sim-templates.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/sim-templates.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/contrib/packages/simulation/lib/sim-templates.tcl 2 Dec 2003 17:29:48 -0000 1.8 +++ openacs-4/contrib/packages/simulation/lib/sim-templates.tcl 11 Dec 2003 13:21:52 -0000 1.9 @@ -120,9 +120,13 @@ (select count(action_id) from workflow_actions where workflow_id = w.workflow_id) as task_count - from workflows w, acs_objects a + from workflows w, + sim_simulations ss, + acs_objects a where w.workflow_id = a.object_id + and ss.simulation_id = w.workflow_id and w.object_id = :package_id + and ss.sim_type in ('dev_template','ready_template') [template::list::orderby_clause -orderby -name sim_templates] " { set description [string_truncate -len 200 $description]