Do not default escape 'create new' links
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 18 Mar 2022 04:30:29 +0000 (17:30 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 18 Mar 2022 04:30:29 +0000 (17:30 +1300)
These are assigned from the various Info::creatNewShortcut and contain html
so should not be escaped in grumpy mode. This block is
largely only in drupal 7 & is only code-assigned

templates/CRM/Block/CreateNew.tpl

index 65245007c02ea08d7b37e45b7c38f363fa785882..f35a3daba26efe53163c64c3768242cf973f6f93 100644 (file)
@@ -33,7 +33,7 @@
             {if $short.shortCuts}
               <ul>
                 {foreach from=$short.shortCuts item=shortCut}
-                  <li><a href="{$shortCut.url}" class="crm-{$shortCut.ref}">{$shortCut.title}</a></li>
+                  <li><a href="{$shortCut.url}" class="crm-{$shortCut.ref}">{$shortCut.title|smarty:nodefaults}</a></li>
                 {/foreach}
               </ul>
             {/if}