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