How to remove bottom Direct Report from the Account

How to remove bottom “Direct Report” from the “contact”


  1. Copy the file from module/Contacts/metadata/subpaneldefs.php to custom/module/Contacts/metadata/subpaneldefs.php
  2. Remove from file custom/module/Contacts/metadata/subpaneldefs.php array:
        'contacts' => array(
            'order' => 100,
            'module' => 'Contacts',
            'sort_order' => 'asc',
            'sort_by' => 'last_name, first_name',
            'subpanel_name' => 'ForContacts',
            'get_subpanel_data' => 'direct_reports',
            'add_subpanel_data' => 'contact_id',
            'title_key' => 'LBL_DIRECT_REPORTS_SUBPANEL_TITLE',
            'top_buttons' => array(
                array('widget_class' => 'SubPanelTopButtonQuickCreate'),
                array('widget_class' => 'SubPanelTopSelectButton', 'mode' => 'MultiSelect')
  1. Do Admin-> Repair->Quick Repair and Rebuild

Can’t this be done from Admin / Show modules and subpanels?

@p.konetskiy Thank you very much for your prompt reply and and it worked beautifully.
Thanks alot

Yes, but it will be worked for all modules if I correctly understand. He did like remove subpanel only for one module.

1 Like