From cf1a98e4b3f76e0057ae01ca0b966942a3f1b3d5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 20 May 2020 18:45:46 +0200 Subject: [PATCH] LSselect: fix number objects of by page --- src/conf/config.inc.php | 2 +- src/includes/routes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf/config.inc.php b/src/conf/config.inc.php index 8370b566..67e4f97a 100644 --- a/src/conf/config.inc.php +++ b/src/conf/config.inc.php @@ -253,7 +253,7 @@ $GLOBALS['LSlog']['level'] = 'INFO'; // DEBUG, INFO, WARNING, ERROR, FATAL $GLOBALS['LSlog']['enable'] = true; define('NB_LSOBJECT_LIST',30); -define('NB_LSOBJECT_LIST_SELECT',11); +define('NB_LSOBJECT_LIST_SELECT',20); $GLOBALS['NB_LSOBJECT_LIST_CHOICES'] = array(30, 60, 100); define('MAX_SEND_FILE_SIZE',2000000); diff --git a/src/includes/routes.php b/src/includes/routes.php index 80512897..9f35c290 100644 --- a/src/includes/routes.php +++ b/src/includes/routes.php @@ -629,7 +629,7 @@ function handle_LSobject_select($request) { // Handle form POST data $LSsearch -> setParamsFormPostData(); - $LSsearch -> setParam('nbObjectsByPage', 4); + $LSsearch -> setParam('nbObjectsByPage', NB_LSOBJECT_LIST_SELECT); $page = (isset($_REQUEST['page'])?(int)$_REQUEST['page']:0);