Skip to content

Commit

Permalink
Merge pull request #11934 from eileenmcnaughton/fees
Browse files Browse the repository at this point in the history
Fix fatal error when selecting a $0 price option in change fee selection
  • Loading branch information
monishdeb authored Apr 4, 2018
2 parents b49502a + c46645b commit 4208f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Price/BAO/LineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ public static function changeFeeSelections(
));
unset($updateFinancialItemInfoValues['financialTrxn']);
}
elseif (!empty($updateFinancialItemInfoValues['link-financial-trxn'])) {
elseif (!empty($updateFinancialItemInfoValues['link-financial-trxn']) && $newFinancialItem->amount != 0) {
civicrm_api3('EntityFinancialTrxn', 'create', array(
'entity_id' => $newFinancialItem->id,
'entity_table' => 'civicrm_financial_item',
Expand Down

0 comments on commit 4208f0f

Please sign in to comment.