Tpl notice fix
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 19 Sep 2021 21:15:58 +0000 (09:15 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 19 Sep 2021 23:33:01 +0000 (11:33 +1200)
templates/CRM/Contribute/Form/Selector.tpl

index 9e8b9cdc75f96f00ccc4f1b64d759aa444eba778..5443e1f7408708d3cbe2bbd577f94438e43e3213 100644 (file)
           {/if}
         </td>
       {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 *}