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

DCA-64 Payment Options heading is incorrectly shown when default amount is 0

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      The common paymentBlock has a superfluous jQuery call that shows the payment options section on page load with no conditions, resulting in a confusing situation where the Payment Options header is shown with no options under it when the default contribution amount or fee level is zero.

      Steps to reproduce, Contributions / Memberships

      1. Create a Contribution Page with multiple payment methods (processors and/or "pay later")
      2. Add selectable options, either through a price set or the "contribution amounts" section or their equivalents in the Memberships tab. Set the default option to a value of 0.00
      3. Save and preview the contribution page

      Step to reproduce, Events,

      1. Create an event with multiple payment methods enabled
      2. Add multiple Fee levels with the default option having a value of 0.00 through either a price set or the Regular Fees section
      3. Save and preview the event registration page

      Expected results: no payment options or related headers are shown
      Actual results: the "Payment Options" header is shown in between the top of page profile and bottom of page profile, but with no relevant content.

      Agileware ref DCA-64

        Attachments

          Activity

            People

            • Assignee:
              agileware Agileware
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: