LSselect: fix number objects of by page

This commit is contained in:
Benjamin Renard 2020-05-20 18:45:46 +02:00
parent a9860f83de
commit cf1a98e4b3
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);