From 158dca7ede69d4757015ff6e0406834860dff83d Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Mon, 7 Nov 2022 10:42:45 +0000 Subject: [PATCH] [Legacy] Add max listview configuration for record modal --- public/legacy/include/utils.php | 3 +++ public/legacy/modules/Configurator/language/en_us.lang.php | 1 + public/legacy/modules/Configurator/tpls/EditView.tpl | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/public/legacy/include/utils.php b/public/legacy/include/utils.php index 709be6a44..a05a7dbd7 100755 --- a/public/legacy/include/utils.php +++ b/public/legacy/include/utils.php @@ -104,6 +104,7 @@ function make_sugar_config(&$sugar_config) global $upload_maxsize; global $import_max_execution_time; global $list_max_entries_per_subpanel; + global $list_max_entries_per_modal; global $passwordsetting; // assumes the following variables must be set: @@ -168,6 +169,7 @@ function make_sugar_config(&$sugar_config) 'languages' => empty($languages) ? array('en_us' => 'English (US)') : $languages, 'list_max_entries_per_page' => empty($list_max_entries_per_page) ? 20 : $list_max_entries_per_page, 'list_max_entries_per_subpanel' => empty($list_max_entries_per_subpanel) ? 10 : $list_max_entries_per_subpanel, + 'list_max_entries_per_modal' => empty($list_max_entries_per_modal) ? 10 : $list_max_entries_per_modal, 'lock_default_user_name' => empty($lock_default_user_name) ? false : $lock_default_user_name, 'log_memory_usage' => empty($log_memory_usage) ? false : $log_memory_usage, 'name_formats' => empty($nameFormats) ? array( @@ -440,6 +442,7 @@ function get_sugar_config_defaults(): array 'large_scale_test' => false, 'list_max_entries_per_page' => 20, 'list_max_entries_per_subpanel' => 10, + 'list_max_entries_per_modal' => 10, 'lock_default_user_name' => false, 'log_memory_usage' => false, 'oauth2_encryption_key' => base64_encode(random_bytes(32)), diff --git a/public/legacy/modules/Configurator/language/en_us.lang.php b/public/legacy/modules/Configurator/language/en_us.lang.php index 5bda7a08a..aada6500d 100755 --- a/public/legacy/modules/Configurator/language/en_us.lang.php +++ b/public/legacy/modules/Configurator/language/en_us.lang.php @@ -165,6 +165,7 @@ $mod_strings = array( 'LBL_LDAP_ENC_KEY' => 'Encryption Key:', 'DEVELOPER_MODE' => 'Developer Mode', 'LBL_SET_PAGINATION_TYPE' => 'Set Pagination Type', + 'LBL_LIST_ENTRIES_PER_MODAL' => 'Records Per Modal Page', 'SHOW_DOWNLOADS_TAB' => 'Display Downloads Tab', 'SHOW_DOWNLOADS_TAB_HELP' => 'When selected, the Download tab will appear in the User settings and provide users with access to SuiteCRM plug-ins and other available files', diff --git a/public/legacy/modules/Configurator/tpls/EditView.tpl b/public/legacy/modules/Configurator/tpls/EditView.tpl index 3594e34b1..ebf06c06a 100755 --- a/public/legacy/modules/Configurator/tpls/EditView.tpl +++ b/public/legacy/modules/Configurator/tpls/EditView.tpl @@ -80,7 +80,12 @@ - {$MOD.LOCK_HOMEPAGE}: + {$MOD.LBL_LIST_ENTRIES_PER_MODAL} + + + + + {$MOD.LOCK_HOMEPAGE}: {if !empty($config.lock_homepage)} {assign var='lock_homepage_checked' value='CHECKED'}