Settings: table_default_row is disabled by default - refs BT#20846

pull/4855/head
Angel Fernando Quiroz Campos 1 year ago
parent 3f023110ea
commit c1625daf9c
  1. 7
      public/main/inc/lib/display.lib.php
  2. 2
      src/CoreBundle/Settings/PlatformSettingsSchema.php

@ -1204,9 +1204,9 @@ class Display
$extra_params['rowList'] = $rowList;
}
$defaultRow = api_get_setting('platform.table_default_row');
if (!empty($defaultRow)) {
$obj->rowNum = (int) $defaultRow;
$defaultRow = (int) api_get_setting('platform.table_default_row');
if ($defaultRow > 0) {
$obj->rowNum = $defaultRow;
}
$json = '';
@ -1328,6 +1328,7 @@ class Display
}
// Creating the jqgrid element.
$json .= '$("#'.$div_id.'").jqGrid({';
$json .= "autowidth: true,";
//$json .= $beforeSelectRow;
$json .= $gridComplete;
$json .= $beforeProcessing;

@ -75,7 +75,7 @@ class PlatformSettingsSchema extends AbstractSettingsSchema
'pdf_img_dpi' => '96',
'tracking_skip_generic_data' => 'false',
'hide_complete_name_in_whoisonline' => 'false',
'table_default_row' => '50',
'table_default_row' => '0',
'allow_double_validation_in_registration' => 'false',
'block_my_progress_page' => 'false',
'generate_random_login' => 'false',

Loading…
Cancel
Save