From: Jitendra Purohit Date: Mon, 12 Oct 2020 11:36:20 +0000 (+0530) Subject: Fix main contact uf url on merge screen X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8ac996464a781a69927f15b1a3b8debe8673c08c;p=civicrm-core.git Fix main contact uf url on merge screen --- diff --git a/CRM/Dedupe/Merger.php b/CRM/Dedupe/Merger.php index b389807221..e884d72474 100644 --- a/CRM/Dedupe/Merger.php +++ b/CRM/Dedupe/Merger.php @@ -1251,7 +1251,7 @@ INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m $relTables[$name]['other_url'] = str_replace('$cid', $otherId, $relTables[$name]['url']); if ($name === 'rel_table_users') { // @todo - this user url stuff is only needed for the form layer - move to CRM_Contact_Form_Merge - $relTables[$name]['main_url'] = str_replace('%ufid', CRM_Core_BAO_UFMatch::getUFId($otherId), $relTables[$name]['url']); + $relTables[$name]['main_url'] = str_replace('%ufid', CRM_Core_BAO_UFMatch::getUFId($mainId), $relTables[$name]['url']); $relTables[$name]['other_url'] = str_replace('%ufid', CRM_Core_BAO_UFMatch::getUFId($otherId), $relTables[$name]['url']); } if ($name === 'rel_table_memberships') {