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

CRM-21665 Fix check number toggle on Edit form when context is search #11611

Merged
merged 1 commit into from
Jan 30, 2018

Conversation

sunilpawar
Copy link
Contributor

Overview

Check Number toggle on Edit form not work when context is search

Before

Check Number show / hide not working when user search the contribution (Find Contribution) then Edit the contribution in pop up box.

It work on contribution dashboard and under 'Contribution' Tab for contact.

Reason for not working on Find Contribution page: we have two field with same html ID 'payment_instrument_id'

( 1st from find contribution from (payment method) and 2nd is from contribution form)

ID has to be uniq. Since its duplicate jQuery unable to handle show hide functionality when Payment Method changed in Contribution Form.

After

Check number field get toggled when payment method change.

Technical Details

Same ID 'payment_instrument_id' present two times on page


@eileenmcnaughton
Copy link
Contributor

I tested this & it was able to replicate the bug & see it fixed. The code change is consistent with our habit of using a uniqueName for a field.

I wondered if this would affect smart groups but I could not create a smart group from contribution search and a smart group created by advanced search was unaffected - merging

@eileenmcnaughton eileenmcnaughton merged commit e1b9df0 into civicrm:master Jan 30, 2018
@mlutfy mlutfy added this to the 4.7.31 milestone Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants