Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19898

Changing membership type weight breaks set default opiotn in online contribution page

    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.

        Attachments

        1. Contribuion Page Live mode.png
          57 kB
          Mathavan Veermauthu
        2. Member block in Contribution Page.png
          20 kB
          Mathavan Veermauthu

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mathavan Mathavan Veermauthu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: