From 6ab515c6ab9f7a45e5d190c332aae6ad15e41511 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 Aug 2014 11:19:28 +1200 Subject: [PATCH] CRM-15113 - adding a refresh where the redirect would otherwise be causes the user to wind up back on the search page and to get the alert --- templates/CRM/common/dedupe.tpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/CRM/common/dedupe.tpl b/templates/CRM/common/dedupe.tpl index 93b10d11e9..f6e1790c51 100644 --- a/templates/CRM/common/dedupe.tpl +++ b/templates/CRM/common/dedupe.tpl @@ -43,6 +43,13 @@ function processDupes( cid, oid, oper, context, reloadURL ) { // redirect after a small delay setTimeout("window.location.href = '" + reloadURL + "'", 500); } + else { + //CRM-15113 this has the effect of causing the alert to display. Also, as they are already 'actioned' Civi sensibly returns the browser to the + //search screen + setTimeout(function(){ + window.location.reload(); + }, 500); + } } } }); -- 2.25.1