From: jitendrapurohit Date: Mon, 23 Nov 2015 11:09:06 +0000 (+0530) Subject: CRM-17613 -- On view of register participant info, Selection section missing. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c0214b81d79f8e1c4453c4f27d8a10868bb9fced;p=civicrm-core.git CRM-17613 -- On view of register participant info, Selection section missing. --- 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;