From ed9c9fcffde6590319bb44b53ce64253bda67fc8 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 20 Sep 2021 09:15:58 +1200 Subject: [PATCH] Tpl notice fix --- templates/CRM/Contribute/Form/Selector.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Selector.tpl b/templates/CRM/Contribute/Form/Selector.tpl index 9e8b9cdc75..5443e1f740 100644 --- a/templates/CRM/Contribute/Form/Selector.tpl +++ b/templates/CRM/Contribute/Form/Selector.tpl @@ -56,7 +56,10 @@ {/if} {foreach from=$columnHeaders item=column} - {assign var='columnName' value=$column.field_name} + {assign var='columnName' value=''} + {if isset($column.field_name)} + {assign var='columnName' value=$column.field_name} + {/if} {if !$columnName}{* if field_name has not been set skip, this helps with not changing anything not specifically edited *} {elseif $columnName === 'total_amount'}{* rendered above as soft credit columns = confusing *} {elseif isset($column.type) && $column.type === 'actions'}{* rendered below as soft credit column handling = not fixed *} -- 2.25.1