Index: openacs-4/packages/assessment/www/asm-admin/catalog-browse.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/catalog-browse.xql,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/assessment/www/asm-admin/catalog-browse.xql 21 Apr 2005 09:16:56 -0000 1.2 +++ openacs-4/packages/assessment/www/asm-admin/catalog-browse.xql 27 Apr 2006 08:02:27 -0000 1.2.2.1 @@ -105,7 +105,7 @@ where m.section_id = :section_id) and exists (select 1 from as_item_rels ir where item_rev_id = cr.revision_id and ir.rel_type = 'as_item_display_rel') - and ao.object_id = ci.item_id + and ao.object_id = cr.revision_id and p.person_id = ao.creation_user and ir.item_rev_id = cr.revision_id and ir.target_rev_id = o.object_id @@ -131,7 +131,7 @@ and i.as_item_id not in (select m.as_item_id from as_item_section_map m where m.section_id = :section_id) - and ao.object_id = ci.item_id + and ao.object_id = cr.revision_id and p.person_id = ao.creation_user and ir.item_rev_id = cr.revision_id and ir.target_rev_id = o.object_id