From d11a05d68b92ff089d42e79897b9e98205912204 Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Fri, 17 May 2013 14:12:11 +0530 Subject: [PATCH] -- CRM-10397 Pay Later Improvements --- CRM/Contribute/Form/ContributionPage/Amount.php | 5 +---- CRM/Core/HTMLInputCoder.php | 1 + CRM/Event/Form/ManageEvent/Fee.php | 5 +---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/CRM/Contribute/Form/ContributionPage/Amount.php b/CRM/Contribute/Form/ContributionPage/Amount.php index 381e201c64..0ed67cf757 100644 --- a/CRM/Contribute/Form/ContributionPage/Amount.php +++ b/CRM/Contribute/Form/ContributionPage/Amount.php @@ -137,10 +137,7 @@ SELECT id CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_ContributionPage', 'pay_later_text'), FALSE ); - $this->addElement('textarea', 'pay_later_receipt', ts('Pay later instructions'), - CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_ContributionPage', 'pay_later_receipt'), - FALSE - ); + $this->addWysiwyg('pay_later_receipt', ts('Pay Later Instructions'), CRM_Core_DAO::getAttribute('CRM_Contribute_DAO_ContributionPage', 'pay_later_receipt')); //add partial payment options diff --git a/CRM/Core/HTMLInputCoder.php b/CRM/Core/HTMLInputCoder.php index e7de451b30..5bfd11fee1 100644 --- a/CRM/Core/HTMLInputCoder.php +++ b/CRM/Core/HTMLInputCoder.php @@ -96,6 +96,7 @@ class CRM_Core_HTMLInputCoder implements API_Wrapper { 'bcc_id', 'premiums_intro_text', 'honor_block_text', + 'pay_later_text', 'pay_later_receipt', 'label', // This is needed for FROM Email Address configuration. dgg 'url', // This is needed for navigation items urls diff --git a/CRM/Event/Form/ManageEvent/Fee.php b/CRM/Event/Form/ManageEvent/Fee.php index 061149a541..a266b15140 100644 --- a/CRM/Event/Form/ManageEvent/Fee.php +++ b/CRM/Event/Form/ManageEvent/Fee.php @@ -271,10 +271,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent { CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event', 'pay_later_text'), FALSE ); - $this->addElement('textarea', 'pay_later_receipt', ts('Pay Later Instructions'), - CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event', 'pay_later_receipt'), - FALSE - ); + $this->addWysiwyg('pay_later_receipt', ts('Pay Later Instructions'), CRM_Core_DAO::getAttribute('CRM_Event_DAO_Event', 'pay_later_receipt')); $this->add('text', 'fee_label', ts('Fee Label')); -- 2.25.1