From 0dcfd3923e553655806b1530ad0b607d677c41f9 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 25 Oct 2022 01:43:04 -0400 Subject: [PATCH] SearchKit - Cleanup option group mgd files and translate labels --- .../managed/SearchDisplayType.mgd.php | 42 ++++--------------- ext/search_kit/managed/TagUsedFor.mgd.php | 10 ----- 2 files changed, 8 insertions(+), 44 deletions(-) diff --git a/ext/search_kit/managed/SearchDisplayType.mgd.php b/ext/search_kit/managed/SearchDisplayType.mgd.php index 94d55fdf13..4998d88c0e 100644 --- a/ext/search_kit/managed/SearchDisplayType.mgd.php +++ b/ext/search_kit/managed/SearchDisplayType.mgd.php @@ -1,6 +1,7 @@ 'SearchDisplayType', @@ -12,11 +13,8 @@ return [ 'values' => [ 'name' => 'search_display_type', 'title' => 'Search Display Type', - 'description' => NULL, - 'data_type' => NULL, 'is_reserved' => TRUE, 'is_active' => TRUE, - 'is_locked' => FALSE, 'option_value_fields' => [ 'name', 'label', @@ -38,19 +36,11 @@ return [ 'option_group_id.name' => 'search_display_type', 'value' => 'table', 'name' => 'crm-search-display-table', - 'label' => 'Table', + 'label' => E::ts('Table'), 'icon' => 'fa-table', - 'grouping' => NULL, - 'filter' => 0, - 'is_default' => FALSE, - 'description' => NULL, - 'is_optgroup' => FALSE, - 'is_reserved' => FALSE, + 'is_reserved' => TRUE, 'is_active' => TRUE, - 'color' => NULL, - 'component_id' => NULL, 'domain_id' => NULL, - 'visibility_id' => NULL, ], 'match' => ['option_group_id', 'name'], ], @@ -66,19 +56,11 @@ return [ 'option_group_id.name' => 'search_display_type', 'value' => 'list', 'name' => 'crm-search-display-list', - 'label' => 'List', + 'label' => E::ts('List'), 'icon' => 'fa-list', - 'grouping' => NULL, - 'filter' => 0, - 'is_default' => FALSE, - 'description' => NULL, - 'is_optgroup' => FALSE, - 'is_reserved' => FALSE, + 'is_reserved' => TRUE, 'is_active' => TRUE, - 'color' => NULL, - 'component_id' => NULL, 'domain_id' => NULL, - 'visibility_id' => NULL, ], 'match' => ['option_group_id', 'name'], ], @@ -94,19 +76,11 @@ return [ 'option_group_id.name' => 'search_display_type', 'value' => 'grid', 'name' => 'crm-search-display-grid', - 'label' => 'Grid', + 'label' => E::ts('Grid'), 'icon' => 'fa-th', - 'grouping' => NULL, - 'filter' => 0, - 'is_default' => FALSE, - 'description' => NULL, - 'is_optgroup' => FALSE, - 'is_reserved' => FALSE, + 'is_reserved' => TRUE, 'is_active' => TRUE, - 'color' => NULL, - 'component_id' => NULL, 'domain_id' => NULL, - 'visibility_id' => NULL, ], 'match' => ['option_group_id', 'name'], ], diff --git a/ext/search_kit/managed/TagUsedFor.mgd.php b/ext/search_kit/managed/TagUsedFor.mgd.php index 711deda9e9..9f932beb20 100644 --- a/ext/search_kit/managed/TagUsedFor.mgd.php +++ b/ext/search_kit/managed/TagUsedFor.mgd.php @@ -1,5 +1,4 @@ 'civicrm_saved_search', 'name' => 'SavedSearch', 'label' => E::ts('Saved Searches'), - 'grouping' => NULL, - 'filter' => 0, - 'is_default' => FALSE, - 'description' => NULL, - 'is_optgroup' => FALSE, 'is_reserved' => FALSE, 'is_active' => TRUE, - 'component_id' => NULL, 'domain_id' => NULL, - 'visibility_id' => NULL, - 'icon' => NULL, - 'color' => NULL, ], 'match' => ['option_group_id', 'name'], ], -- 2.25.1