Index: openacs-4/packages/assessment/tcl/as-checks-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-checks-procs.xql,v diff -u -N -r1.19.2.2 -r1.19.2.3 --- openacs-4/packages/assessment/tcl/as-checks-procs.xql 26 Jul 2005 11:43:15 -0000 1.19.2.2 +++ openacs-4/packages/assessment/tcl/as-checks-procs.xql 26 Jul 2005 13:41:25 -0000 1.19.2.3 @@ -277,6 +277,23 @@ select c.inter_item_check_id,c.check_sql,action_p from as_inter_item_checks c,as_action_map am where c.inter_item_check_id=am.inter_item_check_id and am.action_perform='or' and section_id_from=:section_id order by am.order_by + + + select c.inter_item_check_id from as_inter_item_checks c,as_action_map am where c.inter_item_check_id=am.inter_item_check_id and am.action_perform='sa' and c.assessment_id=:assessment_id order by am.order_by + + + + + select max(revision_id) from cr_revisions where item_id=:assessment_id + + + + + select * from as_inter_item_checks c,as_action_map am where + c.inter_item_check_id=am.inter_item_check_id and am.action_perform='sa' + and c.assessment_id=:assessment_id and c.inter_item_check_id=:check_id order by am.order_by + + select * from as_inter_item_checks where inter_item_check_id=:check_id