Index: openacs-4/packages/simulation/lib/cases.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/lib/cases.tcl,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/simulation/lib/cases.tcl 6 Jan 2004 13:05:47 -0000 1.6
+++ openacs-4/packages/simulation/lib/cases.tcl 7 Jan 2004 14:44:08 -0000 1.7
@@ -25,10 +25,6 @@
}
status {
label "Status"
- display_template {
- Completed
- Active
- }
}
num_user_tasks {
label "Your Tasks"
@@ -49,10 +45,12 @@
select distinct wc.case_id,
sc.label,
w.pretty_name,
- (select count(*)
- from workflow_case_enabled_actions wcea
- where wcea.case_id = wc.case_id
- and wcea.enabled_state = 'enabled') as num_enabled_tasks,
+ case when (select count(*)
+ from workflow_case_enabled_actions wcea
+ where wcea.case_id = wc.case_id
+ and wcea.enabled_state = 'enabled')=0 then 'Completed'
+ else 'Active'
+ end as status,
(select count(distinct wa2.action_id)
from workflow_case_enabled_actions wcea2,
workflow_actions wa2,
@@ -71,5 +69,5 @@
and wc.case_id = wcrpm.case_id
and sc.sim_case_id = wc.object_id
and w.workflow_id = wc.workflow_id
- [template::list::orderby_clause -orderby -name "cases"]
+[template::list::orderby_clause -orderby -name "cases"]
"