Index: openacs-4/packages/attendance/www/admin/certificates.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attendance/www/admin/certificates.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/attendance/www/admin/certificates.tcl 7 Apr 2006 02:33:06 -0000 1.4 +++ openacs-4/packages/attendance/www/admin/certificates.tcl 7 Apr 2006 02:36:58 -0000 1.5 @@ -126,13 +126,14 @@ -parent_id $package_id \ -content_type "image"] } - content::revision::copy \ - -revision_id [content::item::get_latest_revision \ - -item_id \ - [content::item::get_id \ - -item_path "__attendance_default_logo_image" \ - -root_folder_id [dotlrn::get_package_id]]] \ - -target_item_id $image_id + set image_id [content::revision::copy \ + -revision_id [content::item::get_latest_revision \ + -item_id \ + [content::item::get_id \ + -item_path "__attendance_default_logo_image" \ + -root_folder_id [dotlrn::get_package_id]]] \ + -target_item_id $image_id] + content::item::set_live_revision -revision_id [content::item::get_latest_revision -item_id $image_id] ad_returnredirect -message "Using site wide default" [export_vars -base "certificates" {user_id community_id certificate certifies_that attended description_label course_description community_name instructors signature_1 signature_2 signature_3 signature_4 signature_5 signature_6 continuting_ed_credit_info}] } @@ -161,7 +162,7 @@ -revision_id [content::item::get_live_revision \ -item_id $image_id] \ -target_item_id $site_wide_image_id - + content::item::set_live_revision -revision_id [content::item::get_live_revision -item_id $site_wide_image_id] } ad_returnredirect -message "Using site wide default" [export_vars -base "certificates" {user_id community_id certificate certifies_that attended description_label course_description community_name instructors signature_1 signature_2 signature_3 signature_4 signature_5 signature_6 continuting_ed_credit_info}]