Fix missing $max
This commit is contained in:
parent
594da940fa
commit
87348ceac3
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue