From 97eaa51b0f79d9aa2640bbf9d9f9ed5597c16e77 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 2 May 2014 16:00:13 -0700 Subject: [PATCH] CRM-14367 make pdf option dependent on site setting --- CRM/Contribute/Form/Task/PDFLetter.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Task/PDFLetter.php b/CRM/Contribute/Form/Task/PDFLetter.php index 7a53fb8d39..dbb546e405 100644 --- a/CRM/Contribute/Form/Task/PDFLetter.php +++ b/CRM/Contribute/Form/Task/PDFLetter.php @@ -128,9 +128,11 @@ class CRM_Contribute_Form_Task_PDFLetter extends CRM_Contribute_Form_Task { '' => ts('Generate PDFs for printing (only)'), 'email' => ts('Send emails where possible. Generate printable PDFs for contacts who cannot receive email.'), 'both' => ts('Send emails where possible. Generate printable PDFs for all contacts.'), - 'pdfemail' => ts('Send emails with an attached PDF where possible. Generate printable PDFs for contacts who cannot receive email.'), - 'pdfemail_both' => ts('Send emails with an attached PDF where possible. Generate printable PDFs for all contacts.'), ); + if(CRM_Core_Config::singleton()->doNotAttachPDFReceipt) { + $emailOptions['pdfemail'] = ts('Send emails with an attached PDF where possible. Generate printable PDFs for contacts who cannot receive email.'); + $emailOptions['pdfemail_both'] = ts('Send emails with an attached PDF where possible. Generate printable PDFs for all contacts.'); + } $this->addElement('select', 'email_options', ts('Print and email options'), $emailOptions, array(), "
", FALSE); $this->addButtons(array( -- 2.25.1