From 4a695b272f0e9a7ea00915e98dded3135800edb5 Mon Sep 17 00:00:00 2001 From: Edsel Date: Mon, 13 Apr 2015 12:13:47 +0530 Subject: [PATCH] CIVI-28 Added check for multiple pricesets --- CRM/Price/BAO/PriceSet.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index a00fe680a2..124a41af67 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -969,6 +969,9 @@ WHERE id = %1"; unset($feeBlock[$key]['options'][$k]); } } + if (empty($feeBlock[$key]['options'])) { + unset($feeBlock[$key]); + } } // call the hook. CRM_Utils_Hook::buildAmount($component, $form, $feeBlock); -- 2.25.1