mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
N°7163 - Avoid having an empty list when "items per page" is set to 0 as it makes no sense (#616)
This commit is contained in:
@@ -278,7 +278,7 @@ class AjaxRenderController
|
||||
}
|
||||
|
||||
$sTableId = utils::ReadParam('list_id', '');
|
||||
$iLength = utils::ReadParam('end', 10);
|
||||
$iLength = utils::ReadParam('end', 10, false, utils::ENUM_SANITIZATION_FILTER_INTEGER);
|
||||
$aColumns = utils::ReadParam('columns', array(), false, 'raw_data');
|
||||
$sSelectMode = utils::ReadParam('select_mode', '');
|
||||
$aClassAliases = utils::ReadParam('class_aliases', array());
|
||||
@@ -499,7 +499,7 @@ class AjaxRenderController
|
||||
*/
|
||||
public static function DatatableSaveSettings(): bool
|
||||
{
|
||||
$iPageSize = utils::ReadParam('page_size', 10);
|
||||
$iPageSize = utils::ReadParam('page_size', 10, false, utils::ENUM_SANITIZATION_FILTER_INTEGER);
|
||||
$sTableId = utils::ReadParam('table_id', null, false, 'raw_data');
|
||||
$bSaveAsDefaults = (utils::ReadParam('defaults', 'true') == 'true');
|
||||
$aClassAliases = utils::ReadParam('class_aliases', array(), false, 'raw_data');
|
||||
|
||||
Reference in New Issue
Block a user