-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Handle 'Check for Matching Contact(s)' button with ajax #12552
Conversation
(Standard links)
|
I have tested the patch for this, and the button still does not work after the patch, unless AJAX Deduping is disabled. I see the same behaviour - the screen refreshes, with no alert or message. I am on 5.3.1 on Drupal 7. |
@robfenwickuk did you ensure that you removed every line that needed removing? I tested and found it worked fine for me on a buildkit install of 5.3.1 with this patch applied |
@seamuslee001 I must confess to being a github n00b, so what I did was go here: Click raw, and then copied & pasted that to overwrite /sites/all/modules/civicrm/templates/CRM/Contact/Form/Contact.tpl in its entirety |
@robfenwickuk it could be that there is some javascript error on your site which is preventing it from working. Can you try opening up the console (F12) and then go to the "New Individual" form, and click that "Check for matching contacts" button. See if any red error messages show up in your console. |
Ok @robfenwickuk has been super helpful with testing out various workflows and I think we've finally got it all working. Now we've tested:
The latest commit ensures that when editing an existing contact, they will not show up in the list of duplicates! |
@robfenwickuk can you confirm that you've tested all of the above? Thanks so much for your help with this :) |
@colemanw I can confirm I've now fully tested this and it is totally fixed. Thank you for your efforts! Much appreciated. |
Thanks @robfenwickuk for reporting this and diligently testing. And also thanks @seamuslee001 and @eileenmcnaughton for your help. |
Overview
Fixes the 'Check for Matching Contact(s)' button when ajax deduping is enabled
Before
The button would still work if ajax deduping was disabled in system prefs, but didn't work if ajax mode is enabled.
After
The button works either way. If ajax mode is enabled, clicking the button will use ajax. Otherwise it does it the old way.