This commit is contained in:
Laurent Destailleur 2016-09-14 19:48:57 +02:00
parent 571c127ce4
commit aa59420413
2 changed files with 3 additions and 2 deletions

View File

@ -214,7 +214,7 @@ if (empty($reshook))
if ($socid<1)
{
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Customer")), null, 'errors');
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("ThirdParty")), null, 'errors');
$action='create';
$error++;
}

View File

@ -38,7 +38,8 @@ if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($ob
}
global $dateSelector, $forceall, $senderissupplier, $inputalsopricewithtax;
if (empty($dateSelector)) $dateSelector=0;
if (! isset($dateSelector)) $dateSelector=1; // For backward compatibility
elseif (empty($dateSelector)) $dateSelector=0;
if (empty($forceall)) $forceall=0;
if (empty($senderissupplier)) $senderissupplier=0;
if (empty($inputalsopricewithtax)) $inputalsopricewithtax=0;