Index: openacs-4/packages/invoices/www/offer-pdf.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/www/offer-pdf.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/invoices/www/offer-pdf.tcl 7 Apr 2006 13:46:37 -0000 1.7 +++ openacs-4/packages/invoices/www/offer-pdf.tcl 3 Jun 2006 18:25:18 -0000 1.8 @@ -37,7 +37,12 @@ db_transaction { # move file to offer /accepted offer folder - content::item::move -item_id $file_id -target_folder_id $offer_folder_id + if {![string eq "" $offer_folder_id]} { + content::item::move -item_id $file_id -target_folder_id $offer_folder_id + } else { + ns_log Error "No folder for status $status for customer $organization_id in root_folder $root_folder_id" + } + application_data_link::new -this_object_id $offer_id -target_object_id $file_id db_dml set_publish_status {} db_dml set_context_id {}