From 5bba9818ba552ceb4553f20a162f94f3a6270887 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 31 Jul 2023 18:57:54 +0100 Subject: [PATCH] Test if identical price_field_value_id is causing db already exists --- src/WebformCivicrmPostProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebformCivicrmPostProcess.php b/src/WebformCivicrmPostProcess.php index 64e4193b2..75c82474b 100644 --- a/src/WebformCivicrmPostProcess.php +++ b/src/WebformCivicrmPostProcess.php @@ -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