2
0
forked from Wavyzz/dolibarr

Fix missing $max

This commit is contained in:
Laurent Destailleur
2024-04-02 12:01:23 +02:00
parent 594da940fa
commit 87348ceac3
2 changed files with 4 additions and 4 deletions

View File

@@ -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 '</div><div class="fichetwothirdright">';
$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')) {

View File

@@ -42,6 +42,8 @@ $langs->loadLangs(array("companies", "mrp"));
// Security check
$result = restrictedArea($user, 'bom|mrp');
$max = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT');
/*
* View