Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/financial#147 Ensure that jQuery Validation doesn't execute when … #18459

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

seamuslee001
Copy link
Contributor

…we click the paypal express button and ensure the style of the button doesn't change

Overview

The aim of this is to fix a regression where by jquery validation was checking for credit card fields to be validated before allowing the form to be submitted which isn't the correct case when selecting the express button for PayPal Pro payment processor.

Before

Form doesn't submit when submitting using PayPal Pro payment processor and clicking on the Express button

After

Form submits and we rely on the PHP / Quickform validation layer to ensure that enough fields are filled in.

Technical Details

This changes the button from an image imput into a class which may have some style issues down the track. However this does mean that we can pass in the attribute formnovalidate which stops jQuery validation from firing when the user clicks on the button

ping @agh1 @eileenmcnaughton @Stoob @mattwire

…we click the paypal express button and ensure the style of the button doesn't change
@civibot
Copy link

civibot bot commented Sep 14, 2020

(Standard links)

@civibot civibot bot added the 5.30 label Sep 14, 2020
@eileenmcnaughton
Copy link
Contributor

This works for me. Is that enough to merge now or do we want further input? I'm mindful we need to test against 5.29 as well

@eileenmcnaughton
Copy link
Contributor

Too form-layer to test

@eileenmcnaughton
Copy link
Contributor

eileenmcnaughton commented Sep 14, 2020

MOPing as @Stoob commented on gitlab that it passed his testing

@eileenmcnaughton eileenmcnaughton merged commit dab84a0 into civicrm:5.30 Sep 14, 2020
@eileenmcnaughton eileenmcnaughton deleted the dev_financial_147 branch September 14, 2020 04:02
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Oct 6, 2020
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants