projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c926b05
)
CRM-14793 preliminary e-notice fix on pricefield api
author
Eileen McNaughton
<eileen@fuzion.co.nz>
Wed, 4 Jun 2014 09:17:22 +0000
(21:17 +1200)
committer
Eileen McNaughton
<eileen@fuzion.co.nz>
Wed, 4 Jun 2014 09:17:22 +0000
(21:17 +1200)
CRM/Price/BAO/PriceField.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Price/BAO/PriceField.php
b/CRM/Price/BAO/PriceField.php
index 6c25b02c767ff7b2c2fa93878cfb4b0a2715f9bd..0963c61aa1ff421481e93e75ed15e714a0002958 100644
(file)
--- 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]) {