Details
-
Type: Bug
-
Status: Open
-
Priority: Trivial
-
Resolution: Unresolved
-
Affects Version/s: 4.7.9
-
Fix Version/s: None
-
Component/s: CiviContribute, CiviMember
-
Labels:None
-
Versioning Impact:None (no code merged)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
To Reproduce this issue :
1.Create New Membership Type
2.Change Order of Membership Type
3.Create / Edit Contribution Page, Enable Membership Block, Choose Membership types and set Newly created Membership type as default. (attachment 'Member block in Contribution Page.png')
4. Save
Now visit Page in Live/Test mode.(attachment : Contribuion Page Live mode.png)
Based on this code
File : CRM_Price_BAO_PriceField
Line : 141
'is_default' => CRM_Utils_Array::value($params['option_weight'][$index], $defaultArray) ? $defaultArray[$params['option_weight'][$index]] : 0,
when MemberTypeId and MembershipType Weight is not equal then its fails to set default option.