Skip to content

Commit

Permalink
Merge pull request civicrm#36 from Edzelopez/CIVI-28
Browse files Browse the repository at this point in the history
CIVI-28 Added check for multiple pricesets
  • Loading branch information
Edzelopez committed Apr 13, 2015
2 parents 3339fe2 + 6168b97 commit 1e00723
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Price/BAO/PriceSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,9 @@ public static function buildPriceSet(&$form) {
unset($feeBlock[$key]['options'][$k]);
}
}
if (empty($feeBlock[$key]['options'])) {
unset($feeBlock[$key]);
}
}
// call the hook.
CRM_Utils_Hook::buildAmount($component, $form, $feeBlock);
Expand Down

0 comments on commit 1e00723

Please sign in to comment.