AnsweredAssumed Answered

Undo "unset($layout_defs["Accounts"]["subpanel_setup"]['history']);" command

Question asked by bmccarthy on Sep 11, 2015
Latest reply on Sep 15, 2015 by bmccarthy
Quite some time ago, I used the following file to prevent completed tasks from showing up in the Notes subpanel. It was done so long ago, I can't remember all the steps I following to ensure this worked. Now...I need to undo what I've done. 

Is anyone familiar with implementing this...so you can inturn tell me how to undo it?? 

in custom/Extension/modules/Accounts/Ext/Layoutdefs/accounts_notes_1_Accounts.php

<?php
 // created: 2014-02-28 12:06:13
unset($layout_defs["Accounts"]["subpanel_setup"]['history']); 
  $layout_defs["Accounts"]['member_organizations']['order'] = 30; 
  $layout_defs["Accounts"]['activities']['order'] = 20; 
  $layout_defs["Accounts"]["subpanel_setup"]['accounts_notes_1'] = array (
    'order' => 10,
    'module' => 'Notes',
    'subpanel_name' => 'default',
    'sort_order' => 'asc',
    'sort_by' => 'id',
    'title_key' => 'LBL_ACCOUNTS_NOTES_1_FROM_NOTES_TITLE',
    'get_subpanel_data' => 'accounts_notes_1',
    'top_buttons' => 
    array (
   0 => 
   array (
     'widget_class' => 'SubPanelTopButtonQuickCreate',
   ),
   1 => 
   array (
     'widget_class' => 'SubPanelTopSelectButton',
     'mode' => 'MultiSelect',
   ),
    ),
  );


Of course, simply removing this file breaks the system. 

Outcomes