From: Eileen McNaughton Date: Thu, 23 Jul 2015 08:52:01 +0000 (+1200) Subject: fix enotice when price_field is not passed in X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=183a06101c7cdc6ef2d38c62149ae1b263333086;p=civicrm-core.git fix enotice when price_field is not passed in --- diff --git a/CRM/Price/BAO/PriceFieldValue.php b/CRM/Price/BAO/PriceFieldValue.php index 80adef24a4..8b9b12e294 100644 --- a/CRM/Price/BAO/PriceFieldValue.php +++ b/CRM/Price/BAO/PriceFieldValue.php @@ -65,7 +65,7 @@ class CRM_Price_BAO_PriceFieldValue extends CRM_Price_DAO_PriceFieldValue { $fieldValueBAO->save(); // Reset the cached values in this function. - CRM_Price_BAO_PriceField::getOptions($params['price_field_id'], FALSE, TRUE); + CRM_Price_BAO_PriceField::getOptions(CRM_Utils_Array::value('price_field_id', $params), FALSE, TRUE); return $fieldValueBAO; }