From 59ae53e60f733bd44192d14a596a3af283a3dedf Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Mon, 13 Feb 2023 13:46:23 +0000 Subject: [PATCH] [Legacy] Add label to history search defs --- .../legacy/modules/Accounts/metadata/subpaneldefs.php | 10 ++++++---- .../legacy/modules/Campaigns/metadata/subpaneldefs.php | 4 +++- public/legacy/modules/Cases/metadata/subpaneldefs.php | 6 ++++-- .../legacy/modules/Contacts/metadata/subpaneldefs.php | 6 ++++-- public/legacy/modules/Leads/metadata/subpaneldefs.php | 6 ++++-- .../legacy/modules/Project/metadata/subpaneldefs.php | 4 +++- .../modules/ProjectTask/metadata/subpaneldefs.php | 4 +++- .../legacy/modules/Prospects/metadata/subpaneldefs.php | 6 ++++-- 8 files changed, 31 insertions(+), 15 deletions(-) diff --git a/public/legacy/modules/Accounts/metadata/subpaneldefs.php b/public/legacy/modules/Accounts/metadata/subpaneldefs.php index a761b2abf..d7d1d4e51 100755 --- a/public/legacy/modules/Accounts/metadata/subpaneldefs.php +++ b/public/legacy/modules/Accounts/metadata/subpaneldefs.php @@ -41,7 +41,6 @@ if (!defined('sugarEntry') || !sugarEntry) { * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM". */ - $layout_defs['Accounts'] = array( // list of what Subpanels to show in the DetailView 'subpanel_setup' => array( @@ -134,13 +133,14 @@ $layout_defs['Accounts'] = array( 'name' => 'collection', 'label' => 'LBL_COLLECTION_TYPE', 'type' => 'enum', - 'options' => $GLOBALS['app_list_strings']['collection_temp_list'], + 'options' => 'collection_temp_list', 'default' => true, 'width' => '10%', ), 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -155,7 +155,8 @@ $layout_defs['Accounts'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ), @@ -205,7 +206,8 @@ $layout_defs['Accounts'] = array( 'add_subpanel_data' => 'opportunity_id', 'title_key' => 'LBL_OPPORTUNITIES_SUBPANEL_TITLE', 'top_buttons' => array( - array('widget_class' => 'SubPanelTopButtonQuickCreate') + array('widget_class' => 'SubPanelTopButtonQuickCreate'), + array('widget_class' => 'SubPanelTopFilterButton'), ), ), 'leads' => array( diff --git a/public/legacy/modules/Campaigns/metadata/subpaneldefs.php b/public/legacy/modules/Campaigns/metadata/subpaneldefs.php index f2b09606d..1ad63c8c3 100755 --- a/public/legacy/modules/Campaigns/metadata/subpaneldefs.php +++ b/public/legacy/modules/Campaigns/metadata/subpaneldefs.php @@ -95,6 +95,7 @@ $layout_defs['Campaigns'] = array( 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -109,7 +110,8 @@ $layout_defs['Campaigns'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ), diff --git a/public/legacy/modules/Cases/metadata/subpaneldefs.php b/public/legacy/modules/Cases/metadata/subpaneldefs.php index a2b3aba7e..9421ad4b5 100755 --- a/public/legacy/modules/Cases/metadata/subpaneldefs.php +++ b/public/legacy/modules/Cases/metadata/subpaneldefs.php @@ -149,13 +149,14 @@ $layout_defs['Cases'] = array( 'name' => 'collection', 'label' => 'LBL_COLLECTION_TYPE', 'type' => 'enum', - 'options' => $GLOBALS['app_list_strings']['collection_temp_list'], + 'options' => 'collection_temp_list', 'default' => true, 'width' => '10%', ), 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -170,7 +171,8 @@ $layout_defs['Cases'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ), diff --git a/public/legacy/modules/Contacts/metadata/subpaneldefs.php b/public/legacy/modules/Contacts/metadata/subpaneldefs.php index 7ccde3abf..14296c2a8 100755 --- a/public/legacy/modules/Contacts/metadata/subpaneldefs.php +++ b/public/legacy/modules/Contacts/metadata/subpaneldefs.php @@ -146,13 +146,14 @@ $layout_defs['Contacts'] = array( 'name' => 'collection', 'label' => 'LBL_COLLECTION_TYPE', 'type' => 'enum', - 'options' => $GLOBALS['app_list_strings']['collection_temp_list'], + 'options' => 'collection_temp_list', 'default' => true, 'width' => '10%', ), 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -167,7 +168,8 @@ $layout_defs['Contacts'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ), diff --git a/public/legacy/modules/Leads/metadata/subpaneldefs.php b/public/legacy/modules/Leads/metadata/subpaneldefs.php index ee608cf41..587e06d65 100755 --- a/public/legacy/modules/Leads/metadata/subpaneldefs.php +++ b/public/legacy/modules/Leads/metadata/subpaneldefs.php @@ -163,13 +163,14 @@ $layout_defs['Leads'] = array( 'name' => 'collection', 'label' => 'LBL_COLLECTION_TYPE', 'type' => 'enum', - 'options' => $GLOBALS['app_list_strings']['collection_temp_list'], + 'options' => 'collection_temp_list', 'default' => true, 'width' => '10%', ), 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -184,7 +185,8 @@ $layout_defs['Leads'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ), diff --git a/public/legacy/modules/Project/metadata/subpaneldefs.php b/public/legacy/modules/Project/metadata/subpaneldefs.php index b63b495e7..6dae679a6 100755 --- a/public/legacy/modules/Project/metadata/subpaneldefs.php +++ b/public/legacy/modules/Project/metadata/subpaneldefs.php @@ -162,6 +162,7 @@ $layout_defs['Project'] = array( 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -176,7 +177,8 @@ $layout_defs['Project'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ), diff --git a/public/legacy/modules/ProjectTask/metadata/subpaneldefs.php b/public/legacy/modules/ProjectTask/metadata/subpaneldefs.php index 00a26d961..03b6d8d89 100755 --- a/public/legacy/modules/ProjectTask/metadata/subpaneldefs.php +++ b/public/legacy/modules/ProjectTask/metadata/subpaneldefs.php @@ -137,6 +137,7 @@ $layout_defs['ProjectTask'] = array( 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -151,7 +152,8 @@ $layout_defs['ProjectTask'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ), diff --git a/public/legacy/modules/Prospects/metadata/subpaneldefs.php b/public/legacy/modules/Prospects/metadata/subpaneldefs.php index 96700613d..ca63f1356 100755 --- a/public/legacy/modules/Prospects/metadata/subpaneldefs.php +++ b/public/legacy/modules/Prospects/metadata/subpaneldefs.php @@ -135,13 +135,14 @@ $layout_defs['Prospects'] = array( 'name' => 'collection', 'label' => 'LBL_COLLECTION_TYPE', 'type' => 'enum', - 'options' => $GLOBALS['app_list_strings']['collection_temp_list'], + 'options' => 'collection_temp_list', 'default' => true, 'width' => '10%', ), 'name' => array( 'name' => 'name', + 'label' => 'LBL_SUBJECT', 'default' => true, 'width' => '10%', ), @@ -156,7 +157,8 @@ $layout_defs['Prospects'] = array( 'date_modified' => array( 'name' => 'date_modified', - 'default' => true, + 'label' => 'LBL_DATE_MODIFIED', + 'type' => 'date', 'width' => '10%', ), ),