Commit 1c47efee authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

now only selected price fields are discount incase of non-quickconfig pricesets

parent c2b5e542
......@@ -388,7 +388,7 @@ function cividiscount_civicrm_buildAmount($pagetype, &$form, &$amounts) {
//retrieve price set field associated with this priceset
$priceSetInfo = CRM_CiviDiscount_Utils::getPriceSetsInfo($psid);
if ($pagetype == 'event') {
if ($pagetype == 'event' && $isQuickConfigPriceSet) {
$discounts[$key]['pricesets'] = array_combine(array_keys($priceSetInfo), array_keys($priceSetInfo));
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment