From: Kurund Jalmi Date: Tue, 5 Mar 2013 10:08:33 +0000 (+0530) Subject: fixed adding of client for multi-client mode, problem was with the page being redirec... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b5547cb6cd21876afc85272d2f7289a5c3534747;p=civicrm-core.git fixed adding of client for multi-client mode, problem was with the page being redirected before relationship was saved, CRM-12012 --- 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() {