From b5547cb6cd21876afc85272d2f7289a5c3534747 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Tue, 5 Mar 2013 15:38:33 +0530 Subject: [PATCH] fixed adding of client for multi-client mode, problem was with the page being redirected before relationship was saved, CRM-12012 --- templates/CRM/Case/Form/CaseView.tpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/templates/CRM/Case/Form/CaseView.tpl b/templates/CRM/Case/Form/CaseView.tpl index 63989c5e42..b3ffcbba1f 100644 --- a/templates/CRM/Case/Form/CaseView.tpl +++ b/templates/CRM/Case/Form/CaseView.tpl @@ -316,14 +316,11 @@ cj.post( postUrl, {contactID: contactID,caseID: caseID, key: {/literal}"{crmKey name='civicrm/case/ajax/addclient'}"{literal} }, function( data ) { + //due to caching issues we use redirection rather than reload + document.location = {/literal}'{crmURL q="action=view&reset=1&id=$caseID&cid=$contactID&context=$context" h=0 }'{literal}; }, 'json' ); - - cj(this).dialog("close"); - cj(this).dialog("destroy"); - //due to caching issues we use redirection rather than reload - document.location = {/literal}'{crmURL q="action=view&reset=1&id=$caseID&cid=$contactID&context=$context" h=0 }'{literal}; }, "Cancel": function() { -- 2.25.1