CRM-17613 -- On view of register participant info, Selection section missing.
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 23 Nov 2015 11:09:06 +0000 (16:39 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 23 Nov 2015 11:09:06 +0000 (16:39 +0530)
CRM/Price/BAO/PriceSet.php

index e392d9f3418255d2253f54e2439e304ce9269b20..c0bcbd132ca734132e1af6e79609edc44a4f5b6b 100644 (file)
@@ -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;