fix enotice when price_field is not passed in
authorEileen McNaughton <eileen@mcnaughty.com>
Thu, 23 Jul 2015 08:52:01 +0000 (20:52 +1200)
committerEileen McNaughton <eileen@mcnaughty.com>
Thu, 23 Jul 2015 08:52:01 +0000 (20:52 +1200)
CRM/Price/BAO/PriceFieldValue.php

index 80adef24a483686dcb4e6be5fdf044f7708b89fa..8b9b12e294bc8c23713a5179f97134039d4f8bc0 100644 (file)
@@ -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;
   }