|
@@ -38,7 +38,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
|
// Load translation files required by the page
|
|
|
$langs->loadLangs(array("accountancy"));
|
|
|
|
|
|
-$page = GETPOST("page", 'int');
|
|
|
+$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
|
|
|
$sortorder = GETPOST("sortorder", 'alpha');
|
|
|
$sortfield = GETPOST("sortfield", 'alpha');
|
|
|
$action = GETPOST('action', 'aZ09');
|
|
@@ -47,7 +47,7 @@ $action = GETPOST('action', 'aZ09');
|
|
|
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
|
|
$sortfield = GETPOST('sortfield', 'alpha');
|
|
|
$sortorder = GETPOST('sortorder', 'alpha');
|
|
|
-$page = GETPOST('page', 'int');
|
|
|
+$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
|
|
|
if (empty($page) || $page == -1 || GETPOST('button_search', 'alpha') || GETPOST('button_removefilter', 'alpha') || (empty($toselect) && $massaction === '0')) { $page = 0; } // If $page is not defined, or '' or -1 or if we click on clear filters or if we select empty mass action
|
|
|
$offset = $limit * $page;
|
|
|
$pageprev = $page - 1;
|