From 1f6dc66062a54557ad3328863775b7176f551cb3 Mon Sep 17 00:00:00 2001 From: deepak-srivastava Date: Tue, 25 Aug 2015 15:01:27 +0100 Subject: [PATCH] Make flip action also flip contact type icons --- templates/CRM/Contact/Page/DedupeFind.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contact/Page/DedupeFind.tpl b/templates/CRM/Contact/Page/DedupeFind.tpl index daea1b89d9..2a7d2d0ca2 100644 --- a/templates/CRM/Contact/Page/DedupeFind.tpl +++ b/templates/CRM/Contact/Page/DedupeFind.tpl @@ -307,7 +307,7 @@ var postUrl = {/literal}"{crmURL p='civicrm/ajax/flipDupePairs' h=0 q='snippet=4'}"{literal}; var request = $.post(postUrl, {pnid : $el.data('pnid')}); request.done(function(dt) { - var mapper = {2:4, 5:6, 7:8, 9:10} + var mapper = {1:3, 2:4, 5:6, 7:8, 9:10} var idx = table.row($elTr).index(); $.each(mapper, function(key, val) { var v1 = table.cell(idx, key).data(); @@ -329,7 +329,7 @@ if (ids.length > 0) { var dataUrl = {/literal}"{crmURL p='civicrm/ajax/flipDupePairs' h=0 q='snippet=4'}"{literal}; CRM.$.post(dataUrl, {pnid: ids}, function (response) { - var mapper = {2:4, 5:6, 7:8, 9:10} + var mapper = {1:3, 2:4, 5:6, 7:8, 9:10} $('.crm-row-selected').each(function() { var idx = table.row(this).index(); $.each(mapper, function(key, val) { -- 2.25.1