From: Eileen McNaughton Date: Wed, 4 Jun 2014 09:17:22 +0000 (+1200) Subject: CRM-14793 preliminary e-notice fix on pricefield api X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a4537dddff935b7b698a0b1b09e46d4d19b56525;p=civicrm-core.git CRM-14793 preliminary e-notice fix on pricefield api --- 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]) {