From 0582ba7f397d3c841e937b9e833b556f552cc53f Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Tue, 16 Jun 2020 15:57:40 -0400 Subject: [PATCH] Price Field Form: save the fid for the postProcess hook --- CRM/Price/Form/Field.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Price/Form/Field.php b/CRM/Price/Form/Field.php index 260050d261..571ab77be1 100644 --- a/CRM/Price/Form/Field.php +++ b/CRM/Price/Form/Field.php @@ -690,6 +690,8 @@ class CRM_Price_Form_Field extends CRM_Core_Form { $priceField = CRM_Price_BAO_PriceField::create($params); if (!is_a($priceField, 'CRM_Core_Error')) { + // Required by extensions implementing the postProcess hook (to get the ID of new entities) + $this->setEntityId($priceField->id); CRM_Core_Session::setStatus(ts('Price Field \'%1\' has been saved.', [1 => $priceField->label]), ts('Saved'), 'success'); } $buttonName = $this->controller->getButtonName(); -- 2.25.1