minor fix
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 23 Nov 2015 12:42:58 +0000 (18:12 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 23 Nov 2015 12:42:58 +0000 (18:12 +0530)
CRM/Price/BAO/PriceSet.php

index c0bcbd132ca734132e1af6e79609edc44a4f5b6b..f4510bcb211a77976c8f8a17adc91e9fc5d83d62 100644 (file)
@@ -917,9 +917,9 @@ WHERE  id = %1";
     }
     // @todo - stop setting amount level in this function & call the getAmountLevel function to retrieve it.
     if (!empty($amount_level)) {
-      $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level);
+      $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level) . CRM_Core_DAO::VALUE_SEPARATOR;
       if (!empty($displayParticipantCount)) {
-        $params['amount_level'] = $params['amount_level'] . $displayParticipantCount . CRM_Core_DAO::VALUE_SEPARATOR;
+        $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level) . $displayParticipantCount . CRM_Core_DAO::VALUE_SEPARATOR;
       }
     }
     $params['amount'] = CRM_Utils_Money::format($totalPrice, NULL, NULL, TRUE);