Fix var not defined

This commit is contained in:
Laurent Destailleur 2019-07-20 16:15:01 +02:00
parent b6a1c92fc0
commit 6015254a77
2 changed files with 6 additions and 4 deletions

View File

@ -1002,6 +1002,7 @@ while ($i < min($num, $limit))
print '<tr class="oddeven"';
if ($contextpage == 'poslist')
{
$place = (GETPOST('place', 'int') > 0 ? GETPOST('place', 'int') : 0); // $place is id of table for Ba or Restaurant
print ' onclick="location.href=\'list.php?action=change&contextpage=poslist&idcustomer='.$obj->rowid.'&place='.$place.'\'"';
}
print '>';

View File

@ -32,10 +32,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/triggers/interface_50_modNotification_Noti
$langs->loadLangs(array("companies", "mails", "admin", "other"));
$socid = GETPOST("socid", 'int');
$action = GETPOST('action', 'aZ09');
$contactid=GETPOST('contactid'); // May be an int or 'thirdparty'
$actionid=GETPOST('actionid');
$socid = GETPOST("socid", 'int');
$action = GETPOST('action', 'aZ09');
$contactid = GETPOST('contactid'); // May be an int or 'thirdparty'
$actionid = GETPOST('actionid');
$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
// Security check
if ($user->societe_id) $socid=$user->societe_id;