modified shared address note
authorRevati Gawas <revati_gawas@3544132.no-reply.drupal.org>
Fri, 1 Nov 2019 13:50:24 +0000 (19:20 +0530)
committerRevati Gawas <revati_gawas@3544132.no-reply.drupal.org>
Fri, 1 Nov 2019 13:50:24 +0000 (19:20 +0530)
templates/CRM/Contact/Form/ShareAddress.tpl

index fe28a9d50c1f73a7676a920290f1a392a24299c1..bb8a9bc3bc762757738e0b3387954963a5819112 100644 (file)
             });
 
             if (!addressHTML) {
-              var sharedContactLink =  "add?reset=1&action=update&cid=" + sharedContactId;
-              addressHTML = {/literal}"{ts escape='js'}Selected contact does not have an address. Please edit "+ "<a href='" + sharedContactLink + "' target='_blank'> that contact </a>" + "to add an address, or select a different contact.{/ts}"{literal};
+              addressHTML = {/literal}"{ts escape='js'}Selected contact does not have an address. Please edit "+ "<a href='{crmURL p="civicrm/contact/add" q="reset=1&action=update&cid="}" + sharedContactId + "' target='_blank'> {ts}that contact{/ts} </a>" + "to add an address, or select a different contact.{/ts}"{literal};
             }
 
             $contentArea.html(addressHTML);