diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php
index 062fcb1d998..485bd551976 100644
--- a/htdocs/admin/const.php
+++ b/htdocs/admin/const.php
@@ -44,6 +44,17 @@ $constname=GETPOST('constname', 'alpha');
$constvalue=GETPOST('constvalue', 'none'); // We shoul dbe able to send everything here
$constnote=GETPOST('constnote', 'alpha');
+// Load variable for pagination
+$limit = GETPOST('limit', 'int')?GETPOST('limit', 'int'):$conf->liste_limit;
+$sortfield = GETPOST('sortfield', 'alpha');
+$sortorder = GETPOST('sortorder', 'alpha');
+$page = 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;
+$pagenext = $page + 1;
+if (empty($sortfield)) $sortfield = 'entity,name';
+if (empty($sortorder)) $sortorder = 'ASC';
/*
@@ -176,9 +187,11 @@ jQuery(document).ready(function() {
print load_fiche_titre($langs->trans("OtherSetup"), '', 'title_setup');
-print $langs->trans("ConstDesc")."
\n";
+print ''.$langs->trans("ConstDesc")."
\n";
print "
\n";
+$param = '';
+
print '