From 586b8780569245813dfe2cc99df85f9b5ee72c67 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 28 Jan 2015 16:53:22 -0800 Subject: [PATCH] CRM-15883 - Suppressing Stationery path field from PDF Letter action since it is not currently supported. ---------------------------------------- * CRM-15883: Need to remove inoperative "stationery" box from page format when using Print PDF letter? https://issues.civicrm.org/jira/browse/CRM-15883 --- CRM/Contact/Form/Task/PDFLetterCommon.php | 2 ++ templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CRM/Contact/Form/Task/PDFLetterCommon.php b/CRM/Contact/Form/Task/PDFLetterCommon.php index e30edf4440..f31d022407 100644 --- a/CRM/Contact/Form/Task/PDFLetterCommon.php +++ b/CRM/Contact/Form/Task/PDFLetterCommon.php @@ -156,6 +156,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon { ); $config = CRM_Core_Config::singleton(); + /* CRM-15883 Suppressing Stationery path field until we switch from DOMPDF to a library that supports it. if ($config->wkhtmltopdfPath == FALSE) { $form->add( 'text', @@ -165,6 +166,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon { FALSE ); } + */ $form->add('checkbox', 'bind_format', ts('Always use this Page Format with the selected Template')); $form->add('checkbox', 'update_format', ts('Update Page Format (this will affect all templates that use this format)')); diff --git a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl index 0af078364f..cb97d5acdd 100644 --- a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl +++ b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl @@ -72,10 +72,12 @@ {$form.margin_left.label}{$form.margin_left.html} {$form.margin_right.label}{$form.margin_right.html} + {* CRM-15883 Suppressing stationery until switch from DOMPDF. {$form.stationery.label}{$form.stationery.html}   + *}
{$form.bind_format.html} {$form.bind_format.label}
-- 2.25.1