Index: openacs-4/packages/assessment/tcl/as-session-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-session-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/assessment/tcl/as-session-procs.tcl 8 Dec 2006 03:23:50 -0000 1.6 +++ openacs-4/packages/assessment/tcl/as-session-procs.tcl 8 Dec 2006 14:37:31 -0000 1.7 @@ -85,7 +85,9 @@ } content::item::delete -item_id $item_id } - + foreach comment_id [db_list get_comments ""] { + content::item::delete -item_id $comment_id + } set session_item_id [content::revision::item_id -revision_id $session_id] content::revision::delete -revision_id $session_id Index: openacs-4/packages/assessment/tcl/as-session-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/tcl/as-session-procs.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/assessment/tcl/as-session-procs.xql 8 Dec 2006 03:23:50 -0000 1.1 +++ openacs-4/packages/assessment/tcl/as-session-procs.xql 8 Dec 2006 14:37:31 -0000 1.2 @@ -35,6 +35,13 @@ + + +select g.comment_id +from general_comments g +where object_id=:session_id + +