From 057e71340a639ebff82f96b76c6028d152f059c5 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 23 Jul 2015 20:50:57 +1200 Subject: [PATCH] Update reset for update situation --- CRM/Price/BAO/PriceField.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index f608afdc36..2ffa5de1e1 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -580,6 +580,10 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { static $options = array(); if ($reset) { $options = array(); + // This would happen if the function was only called to clear the cache. + if (empty($fieldId)) { + return array(); + } } if (empty($options[$fieldId])) { -- 2.25.1