Skip to content

Commit

Permalink
Test if identical price_field_value_id is causing db already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Jul 31, 2023
1 parent 3a5e997 commit 5bba981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebformCivicrmPostProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,7 @@ private function processContribution() {

$priceFieldValueParams['where'][] = ['name', '=', 'contribution_amount'];
$priceFieldValueParams['where'][] = ['price_field_id', '=', $item['price_field_id']];
$item['price_field_value_id'] = $this->utils->wf_civicrm_api4('PriceFieldValue', 'get', $priceFieldValueParams, 0)['id'];
// $item['price_field_value_id'] = $this->utils->wf_civicrm_api4('PriceFieldValue', 'get', $priceFieldValueParams, 0)['id'];
}

// Save the line_item
Expand Down

0 comments on commit 5bba981

Please sign in to comment.