Skip to content

Commit

Permalink
fix membership label test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed Nov 30, 2024
1 parent e738be6 commit f23d439
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/WebformCivicrmPostProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -1756,11 +1756,14 @@ private function tallyLineItems() {
}
$fee_amount_id = "civicrm_{$c}_membership_{$n}_membership_fee_amount";
$membership_label = $this->getMembershipTypeField($type, 'name') . ": " . $member_name;
if (isset($this->enabled[$fee_amount_id])) {
$membership_label = wf_crm_aval($webform_elements, $this->enabled[$fee_amount_id] . ':#title', $membership_label);
}
$this->line_items[] = [
'qty' => $membership_item['num_terms'],
'unit_price' => $price,
'financial_type_id' => $membership_financialtype,
'label' => wf_crm_aval($webform_elements, $this->enabled[$fee_amount_id] . ':#title', $membership_label),
'label' => $membership_label,
'element' => "civicrm_{$c}_membership_{$n}",
'entity_table' => 'civicrm_membership',
'fid' => $fee_amount_id,
Expand Down

0 comments on commit f23d439

Please sign in to comment.