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:
9e991d2
)
CRM-19871 CRM-19898 Fix issue where changing weight of a membership type changes...
author
Seamus Lee
<seamuslee001@gmail.com>
Sat, 21 Jan 2017 22:39:04 +0000
(09:39 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Sat, 21 Jan 2017 22:42:09 +0000
(09:42 +1100)
CRM/Price/BAO/PriceField.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Price/BAO/PriceField.php
b/CRM/Price/BAO/PriceField.php
index 5b56b2eeaabb0139e688a468af1d426cdaafd9f4..6f3284c63be79936f48fdfdf67b1f610da2fd800 100644
(file)
--- a/
CRM/Price/BAO/PriceField.php
+++ b/
CRM/Price/BAO/PriceField.php
@@
-143,6
+143,7
@@
class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
if ($options['membership_type_id']) {
$options['membership_num_terms'] = CRM_Utils_Array::value($index, CRM_Utils_Array::value('membership_num_terms', $params), 1);
+ $options['is_default'] = CRM_Utils_Array::value($params['membership_type_id'][$index], $defaultArray) ? $defaultArray[$params['membership_type_id'][$index]] : 0;
}
if (CRM_Utils_Array::value($index, CRM_Utils_Array::value('option_financial_type_id', $params))) {