From c0214b81d79f8e1c4453c4f27d8a10868bb9fced Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 23 Nov 2015 16:39:06 +0530 Subject: [PATCH] CRM-17613 -- On view of register participant info, Selection section missing. --- CRM/Price/BAO/PriceSet.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index e392d9f341..c0bcbd132c 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -916,8 +916,11 @@ WHERE id = %1"; $displayParticipantCount = ' Participant Count -' . $totalParticipant; } // @todo - stop setting amount level in this function & call the getAmountLevel function to retrieve it. - if (!empty($amount_level) && !empty($displayParticipantCount)) { - $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level) . $displayParticipantCount . CRM_Core_DAO::VALUE_SEPARATOR; + if (!empty($amount_level)) { + $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level); + if (!empty($displayParticipantCount)) { + $params['amount_level'] = $params['amount_level'] . $displayParticipantCount . CRM_Core_DAO::VALUE_SEPARATOR; + } } $params['amount'] = CRM_Utils_Money::format($totalPrice, NULL, NULL, TRUE); $params['tax_amount'] = $totalTax; -- 2.25.1