From 0adcec25099013b66651c1d0030dd320146fec2e Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 6 Apr 2017 15:05:08 +0530 Subject: [PATCH] QA fix --- CRM/Event/Form/ManageEvent/Fee.php | 2 +- CRM/Member/Form/MembershipType.php | 2 +- templates/CRM/common/deferredFinancialType.tpl | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/Fee.php b/CRM/Event/Form/ManageEvent/Fee.php index b11cc70cd877..beaeb885bfaa 100644 --- a/CRM/Event/Form/ManageEvent/Fee.php +++ b/CRM/Event/Form/ManageEvent/Fee.php @@ -388,7 +388,7 @@ public function buildQuickForm() { ); if (CRM_Contribute_BAO_Contribution::checkContributeSettings('deferred_revenue_enabled')) { $deferredFinancialType = CRM_Financial_BAO_FinancialAccount::getDeferredFinancialType(); - $this->assign('deferredFinancialType', json_encode(array_keys($deferredFinancialType))); + $this->assign('deferredFinancialType', array_keys($deferredFinancialType)); } $this->buildAmountLabel(); parent::buildQuickForm(); diff --git a/CRM/Member/Form/MembershipType.php b/CRM/Member/Form/MembershipType.php index fc70f3fe76f5..026f7ab70e3e 100644 --- a/CRM/Member/Form/MembershipType.php +++ b/CRM/Member/Form/MembershipType.php @@ -207,7 +207,7 @@ public function buildQuickForm() { if (CRM_Contribute_BAO_Contribution::checkContributeSettings('deferred_revenue_enabled')) { $deferredFinancialType = CRM_Financial_BAO_FinancialAccount::getDeferredFinancialType(); - $this->assign('deferredFinancialType', json_encode(array_keys($deferredFinancialType))); + $this->assign('deferredFinancialType', array_keys($deferredFinancialType)); } } diff --git a/templates/CRM/common/deferredFinancialType.tpl b/templates/CRM/common/deferredFinancialType.tpl index 7f6aa77942d0..3f590e60273d 100644 --- a/templates/CRM/common/deferredFinancialType.tpl +++ b/templates/CRM/common/deferredFinancialType.tpl @@ -23,7 +23,7 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{if isset($deferredFinancialType)} +{if isset($deferredFinancialType) && $deferredFinancialType|@count} {literal} {/literal} -{/if} \ No newline at end of file +{/if}