From 27fdb2ef62d9aee58a1016c4243468ea8d3219ea Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 3 Nov 2023 14:22:58 +1300 Subject: [PATCH] Clean up notices on Contribution View (when not in pop-up mode) --- templates/CRM/common/formButtons.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/CRM/common/formButtons.tpl b/templates/CRM/common/formButtons.tpl index be89d454e1..9ae42b57fc 100644 --- a/templates/CRM/common/formButtons.tpl +++ b/templates/CRM/common/formButtons.tpl @@ -12,19 +12,19 @@ {* Loops through $linkButtons and assigns html "a" (link) buttons to the template. Used for additional entity functions such as "Move to Case" or "Renew Membership" *} {if $linkButtons} {foreach from=$linkButtons item=linkButton} - {if $linkButton.accessKey} + {if array_key_exists('accessKey', $linkButton) && $linkButton.accessKey} {capture assign=accessKey}accesskey="{$linkButton.accessKey}"{/capture} {else}{assign var="accessKey" value=""} {/if} - {if $linkButton.icon} + {if array_key_exists('icon', $linkButton) && $linkButton.icon} {capture assign=icon} {/capture} {else}{assign var="icon" value=""} {/if} - {if $linkButton.ref} + {if array_key_exists('ref', $linkButton) && $linkButton.ref} {capture assign=linkname}name="{$linkButton.ref}"{/capture} - {else}{capture assign=linkname}name="{$linkButton.name}"{/capture} + {else}{capture assign=linkname}{if array_key_exists('name', $linkButton)}name="{$linkButton.name}"{/if}{/capture} {/if} - {$icon|smarty:nodefaults}{$linkButton.title} + {/if}{$icon|smarty:nodefaults}{$linkButton.title} {/foreach} {/if} -- 2.25.1