Following the upgrade to 5.3.0, we are finding that the 'Check for Matching Contacts' button, which is in the edit contact screen, is not working. The screen refreshes and reloads the same contact, with no error message.

If you run the default supervised rule from the 'Find and Merge Duplicate Contacts' screen, it picks the duplicate up. But the Check for Matching Contacts function has stopped working. Is this a bug anyone else is seeing?

Thank you!


Drupal 7

  • Are you seeing proposed matches pop up as you type? There was a change in this functionality
    – user4278
    Jul 23 '18 at 12:14
  • I tested on dmaster at "dmaster.demo.civicrm.org/civicrm/contact/…" by typing 'betty adams' and got "Similar Contacts Found If the contact you were trying to add is listed below, click their name to view or edit their record: Betty Jensen jensen.betty87@fakemail.biz Mrs. Betty Adams bettyadams@wisconsinactionfund.org" - but yes if I then click on "Check for Matching Contacts" it just reloads the page without the pop up. Does the pop up not give you the info you need and hence the 'check for matching contacts' is now a bit redundant?
    – petednz - fuzion
    Jul 23 '18 at 19:26
  • We do see the pop-up duplicates warning when adding contacts in the admin interface.... BUT The duplicates are actually being created unsupervised, by users booking for events - we then go in and manually de-dupe. This may seem odd, but we have found it is the best way for our organisation. I wonder if the change in this functionality has broken the button, thank you for confirming it doesn't work for you either @petednz-fuzion Jul 23 '18 at 20:55
  • IN terms of duplicates being created - do you need to a/ review your Dedupe rules, b/ confirm which dedupe rules are being applied for each Event
    – petednz - fuzion
    Jul 23 '18 at 22:23
  • I think Coleman is working on a patch for this - it has been discussed in the dev-post-release channel. Note that under Administer CiviCRM>>Customise Data and screens>>Display Preferences you can opt for Check for Similar Contacts While Typing and they will pop up on name or email match as you do data entry. We also have a hook that adds a link to find matches by rule to the actions on the contact summary screen
    – user4278
    Jul 24 '18 at 2:49

Coleman recently pushed a fix for this on git. Can you please apply the patch and QA if it fixes your problem(if so please comment on PR about your QA result)




the hook per comments looks like hook looks like

 * Add dedupe searches to actions available.
 * @param array $actions
 * @param int $contactID
function dedupetools_civicrm_summaryActions(&$actions, $contactID) {
  try {
    $ruleGroups = civicrm_api3('RuleGroup', 'get', array(
      'contact_type' => civicrm_api3('Contact', 'getvalue' , array('id' => $contactID, 'return' => 'contact_type')),
    $weight = 500;

    $contactIDS = array($contactID);
    foreach ($ruleGroups['values'] as $ruleGroup) {
      $actions['otherActions']['dupe' . $ruleGroup['id']] = array(
        'title' => ts('Find matches using Rule : %1', array(1 => $ruleGroup['title'])),
        'name' => ts('Find matches using Rule : %1', array(1 => $ruleGroup['title'])),
        'weight' => $weight,
        'ref' => 'dupe-rule crm-contact_activities-list',
        'key' => 'dupe' . $ruleGroup['id'],
        'href' => CRM_Utils_System::url('civicrm/contact/dedupefind', array(
          'reset' => 1,
          'action' => 'update',
          'rgid' => $ruleGroup['id'],
          'criteria' => json_encode(array('contact' => array('id' => array('IN' => $contactIDS)))),
          'limit' => count($contactIDS),
  catch (CiviCRM_API3_Exception $e) {
    // This would most likely happen if viewing a deleted contact since we are not forcing
    // them to be returned. Keep calm & carry on.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.