From 06ec036d9a1d3b76f98ffa012f915fd1603667b8 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 13 Apr 2021 16:22:17 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Form=20gestion=20des=20donn=C3=A9es=20nombr?= =?UTF-8?q?e=20de=20lignes=20par=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/form/form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/form/form.php b/module/form/form.php index ca43f200..c6a360be 100755 --- a/module/form/form.php +++ b/module/form/form.php @@ -16,7 +16,7 @@ class form extends common { - const VERSION = '2.8'; + const VERSION = '2.9'; const REALNAME = 'Formulaire'; const DELETE = true; const UPDATE = '0.0'; @@ -47,6 +47,7 @@ class form extends common { const TYPE_DATETIME = 'date'; const TYPE_CHECKBOX = 'checkbox'; const TYPE_LABEL = 'label'; + const ITEMSPAGE = 10; public static $types = [ @@ -62,6 +63,7 @@ class form extends common { public static $listUsers = [ ]; + /** * Configuration */ @@ -139,7 +141,7 @@ class form extends common { $data = $this->getData(['module', $this->getUrl(0), 'data']); if($data) { // Pagination - $pagination = helper::pagination($data, $this->getUrl(),$this->getData(['config','itemsperPage'])); + $pagination = helper::pagination($data, $this->getUrl(),self::ITEMSPAGE); // Liste des pages self::$pagination = $pagination['pages']; // Inverse l'ordre du tableau From f4f8cfe88579247e9cfce6052f04dcb018dc25ca Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 13 Apr 2021 16:36:18 +0200 Subject: [PATCH 2/2] suppression items par page de la config --- core/core.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core.php b/core/core.php index 8cbbc2ea..23842c35 100755 --- a/core/core.php +++ b/core/core.php @@ -1612,6 +1612,9 @@ class common { } } } + // Suppression de l'option d'objets par page gérées par les modules + $this->deleteData(['config','itemsperPage']); + $this->setData(['core', 'dataVersion', 10600]); } }