Remove (old) Smarty-forward incompatible syntax from Address.tpl
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 24 Feb 2023 22:54:41 +0000 (11:54 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 24 Feb 2023 23:02:33 +0000 (12:02 +1300)
templates/CRM/Contact/Page/Inline/Address.tpl

index 453d330884f9e6ef5908d0965707670ee8c7507c..9c248f2b65d41a906676f9a824bf87916180377a 100644 (file)
@@ -31,7 +31,8 @@
               !empty($add.geo_code_2) AND
               is_numeric($add.geo_code_2)
           }
-          <br /><a href="{crmURL p='civicrm/contact/map' q="reset=1&cid=`$contactId`&lid=`$add.location_type_id`"}" title="{ts 1=`$add.location_type`}Map %1 Address{/ts}"><i class="crm-i fa-map-marker" aria-hidden="true"></i> {ts}Map{/ts}</a>
+          {assign var='mapLocationTypeID' value=$add.location_type_id}
+          <br /><a href="{crmURL p='civicrm/contact/map' q="reset=1&cid=$contactId&lid=$mapLocationTypeID"}" title="{ts 1=$add.location_type}Map %1 Address{/ts}"><i class="crm-i fa-map-marker" aria-hidden="true"></i> {ts}Map{/ts}</a>
           {/if}
         </div>
         <div class="crm-content">