How to remove bottom “Direct Report” from the “contact”
- Copy the file from module/Contacts/metadata/subpaneldefs.php to custom/module/Contacts/metadata/subpaneldefs.php
- 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')
),
),
- Do Admin-> Repair->Quick Repair and Rebuild
Can’t this be done from Admin / Show modules and subpanels?
@pgr
Yes, but it will be worked for all modules if I correctly understand. He did like remove subpanel only for one module.
1 Like