Index: openacs-4/packages/invoices/www/invoice-send.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/www/invoice-send.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/invoices/www/invoice-send.tcl 27 Dec 2005 20:17:41 -0000 1.11 +++ openacs-4/packages/invoices/www/invoice-send.tcl 31 Dec 2005 07:36:24 -0000 1.12 @@ -57,8 +57,8 @@ lappend document_types invoice_copy } -if {[empty_string_p [cc_email_from_party $recipient_id]]} { - ad_return_error "No Recipient" "The recipient does not have a valid e-mail address. Please go back and make sure that you provide an e-mail address first." +if {[empty_string_p [cc_email_from_party $contact_id]]} { + ad_return_error "No Recipient" "The contact does not have a valid e-mail address. Please go back and make sure that you provide an e-mail address first." ad_script_abort }