mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-05 10:18:33 +08:00
[Legacy] Add max listview configuration for record modal
This commit is contained in:
parent
18e5f7044d
commit
158dca7ede
3 changed files with 10 additions and 1 deletions
|
@ -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)),
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -79,6 +79,11 @@
|
|||
<td scope="row">{$MOD.LBL_SET_PAGINATION_TYPE}:</td>
|
||||
<td><select name="pagination_type">{$listview_pagination_type}</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue