Index: openacs-4/packages/lorsm/www/delivery/body.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm/www/delivery/body.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/lorsm/www/delivery/body.tcl 24 Feb 2005 13:33:22 -0000 1.4 +++ openacs-4/packages/lorsm/www/delivery/body.tcl 17 May 2005 17:03:40 -0000 1.5 @@ -18,20 +18,20 @@ set user_id [ad_conn user_id] set community_id [dotlrn_community::get_community_id] db_0or1row get_last_viewed { - select item_id as imsitem_id, coalesce(acs_object__name(object_id),'Item '||object_id) as last_page_viewed + select ims_item_id as imsitem_id, coalesce(acs_object__name(object_id),'Item '||object_id) as last_page_viewed from views v, ims_cp_items i, ims_cp_organizations o where v.viewer_id = :user_id - and v.object_id = i.item_id + and v.object_id = i.ims_item_id and i.org_id = o.org_id and o.man_id = :man_id order by v.last_viewed desc limit 1 } set all_items [db_list get_total_items { - select i.item_id + select i.ims_item_id from ims_cp_items i, ims_cp_organizations o where o.man_id = :man_id