From a4537dddff935b7b698a0b1b09e46d4d19b56525 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 4 Jun 2014 21:17:22 +1200 Subject: [PATCH] CRM-14793 preliminary e-notice fix on pricefield api --- CRM/Price/BAO/PriceField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Price/BAO/PriceField.php b/CRM/Price/BAO/PriceField.php index 6c25b02c76..0963c61aa1 100644 --- a/CRM/Price/BAO/PriceField.php +++ b/CRM/Price/BAO/PriceField.php @@ -108,7 +108,8 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField { } } $defaultArray = array(); - if ($params['html_type'] == 'CheckBox' && isset($params['default_checkbox_option'])) { + //html type would be empty in update scenario not sure what would happen ... + if (!empty($params['html_type']) && $params['html_type'] == 'CheckBox' && isset($params['default_checkbox_option'])) { $tempArray = array_keys($params['default_checkbox_option']); foreach ($tempArray as $v) { if ($params['option_amount'][$v]) { -- 2.25.1