From 87348ceac396f2d602fa50a4bbecc2cd6dc83c93 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 2 Apr 2024 12:01:23 +0200 Subject: [PATCH] Fix missing $max --- htdocs/modulebuilder/template/mymoduleindex.php | 6 ++---- htdocs/mrp/index.php | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/modulebuilder/template/mymoduleindex.php b/htdocs/modulebuilder/template/mymoduleindex.php index f11670f0906..9597abbd11f 100644 --- a/htdocs/modulebuilder/template/mymoduleindex.php +++ b/htdocs/modulebuilder/template/mymoduleindex.php @@ -63,9 +63,10 @@ $langs->loadLangs(array("mymodule@mymodule")); $action = GETPOST('action', 'aZ09'); -$max = 5; $now = dol_now(); +$max = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT'); + // Security check - Protection if external user $socid = GETPOST('socid', 'int'); if (isset($user->socid) && $user->socid > 0) { @@ -184,9 +185,6 @@ END MODULEBUILDER DRAFT MYOBJECT */ print '
'; -$NBMAX = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT'); -$max = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT'); - /* BEGIN MODULEBUILDER LASTMODIFIED MYOBJECT // Last modified myobject if (isModEnabled('mymodule') && $user->hasRight('mymodule', 'read')) { diff --git a/htdocs/mrp/index.php b/htdocs/mrp/index.php index 60f8c96f81f..409f1847a8b 100644 --- a/htdocs/mrp/index.php +++ b/htdocs/mrp/index.php @@ -42,6 +42,8 @@ $langs->loadLangs(array("companies", "mrp")); // Security check $result = restrictedArea($user, 'bom|mrp'); +$max = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT'); + /* * View