Skip to content

Commit

Permalink
Merge pull request civicrm#28462 from eileenmcnaughton/notice_mem
Browse files Browse the repository at this point in the history
Notice fix in membership_online_receipt
  • Loading branch information
demeritcowboy authored Dec 4, 2023
2 parents 8ea0166 + 4f30edd commit b3977df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Financial/BAO/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,8 @@ protected function calculateLineItems(): array {
elseif ($taxRate) {
$lineItem['tax_amount'] = ($taxRate / 100) * $lineItem['line_total'];
}
if (!empty($lineItem['membership_type_id'])) {
$lineItem['membership_type_id'] = $lineItem['membership_type_id'] ?? NULL;
if ($lineItem['membership_type_id']) {
$lineItem['entity_table'] = 'civicrm_membership';
}
$lineItem['title'] = $this->getLineItemTitle($lineItem);
Expand Down

0 comments on commit b3977df

Please sign in to comment.