[Legacy] Add max listview configuration for record modal

This commit is contained in:
Jack Anderson 2022-11-07 10:42:45 +00:00 committed by Clemente Raposo
parent 18e5f7044d
commit 158dca7ede
3 changed files with 10 additions and 1 deletions

View file

@ -104,6 +104,7 @@ function make_sugar_config(&$sugar_config)
global $upload_maxsize; global $upload_maxsize;
global $import_max_execution_time; global $import_max_execution_time;
global $list_max_entries_per_subpanel; global $list_max_entries_per_subpanel;
global $list_max_entries_per_modal;
global $passwordsetting; global $passwordsetting;
// assumes the following variables must be set: // 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, '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_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_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, '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, 'log_memory_usage' => empty($log_memory_usage) ? false : $log_memory_usage,
'name_formats' => empty($nameFormats) ? array( 'name_formats' => empty($nameFormats) ? array(
@ -440,6 +442,7 @@ function get_sugar_config_defaults(): array
'large_scale_test' => false, 'large_scale_test' => false,
'list_max_entries_per_page' => 20, 'list_max_entries_per_page' => 20,
'list_max_entries_per_subpanel' => 10, 'list_max_entries_per_subpanel' => 10,
'list_max_entries_per_modal' => 10,
'lock_default_user_name' => false, 'lock_default_user_name' => false,
'log_memory_usage' => false, 'log_memory_usage' => false,
'oauth2_encryption_key' => base64_encode(random_bytes(32)), 'oauth2_encryption_key' => base64_encode(random_bytes(32)),

View file

@ -165,6 +165,7 @@ $mod_strings = array(
'LBL_LDAP_ENC_KEY' => 'Encryption Key:', 'LBL_LDAP_ENC_KEY' => 'Encryption Key:',
'DEVELOPER_MODE' => 'Developer Mode', 'DEVELOPER_MODE' => 'Developer Mode',
'LBL_SET_PAGINATION_TYPE' => 'Set Pagination Type', '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' => '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', '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',

View file

@ -80,7 +80,12 @@
<td><select name="pagination_type">{$listview_pagination_type}</select></td> <td><select name="pagination_type">{$listview_pagination_type}</select></td>
</tr> </tr>
<tr> <tr>
<td scope="row">{$MOD.LOCK_HOMEPAGE}:</td> <td width="17%" scope="row"><span>{$MOD.LBL_LIST_ENTRIES_PER_MODAL}</td>
<td width="83%" colspan="3">
<input type='text' size='4' id='ConfigureSettings_list_max_entries_per_modal' name='list_max_entries_per_modal' value='{$config.list_max_entries_per_modal}'></td>
</tr>
<tr>
<td scope="row">{$MOD.LOCK_HOMEPAGE}: </td>
<td> <td>
{if !empty($config.lock_homepage)} {if !empty($config.lock_homepage)}
{assign var='lock_homepage_checked' value='CHECKED'} {assign var='lock_homepage_checked' value='CHECKED'}