Commit fbd2d306 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

fixed discount calculation for quick config price sets

parent c92b7272
......@@ -389,8 +389,7 @@ function cividiscount_civicrm_buildAmount($pagetype, &$form, &$amounts) {
$priceSetInfo = CRM_CiviDiscount_Utils::getPriceSetsInfo($psid);
if ($pagetype == 'event') {
// Do nothing, we already have the list of discountable price set items for this event
// as $discounts[$key]['pricesets'] from _cividiscount_get_candidate_discounts(); above
$discounts[$key]['pricesets'] = array_combine(array_keys($priceSetInfo), array_keys($priceSetInfo));
}
else {
if (empty($discounts[$key]['pricesets'])) {
......
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