mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix missing $max
This commit is contained in:
@@ -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')) {
|
||||
|
||||
@@ -42,6 +42,8 @@ $langs->loadLangs(array("companies", "mrp"));
|
||||
// Security check
|
||||
$result = restrictedArea($user, 'bom|mrp');
|
||||
|
||||
$max = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT');
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
|
||||
Reference in New Issue
Block a user