AnsweredAssumed Answered

Warning in SubPanelTiles.php line 454 when disabling History top_buttons

Question asked by tobydz on Mar 8, 2014
Latest reply on Mar 10, 2014 by tobydz
I'm using old code that worked in versions before 6.5 that would disable the history subpanel buttons by creating a file in Custom/Extension/Modules/Leads/Ext/Layoutdefs/_override_history_buttons.php with the line of code:
<code>
unset($layout_defs['Leads']['subpanel_setup']['history']['top_buttons']);
</code>

Now I get this warning in the Leads subpanel:
Warning: Invalid argument supplied for foreach() in /var/www/html/sunworks/include/SubPanel/SubPanelTiles.php on line 454

Anyone know either a different way of doing this, or how to just disable that error message?

Outcomes