Fix warning on supplier order card when reception enabled.

This commit is contained in:
Francis Appels 2021-08-24 10:48:26 +02:00
parent a6ddc90d5b
commit edeaa6009f

View File

@ -2466,7 +2466,7 @@ if ($action == 'create') {
$labelofbutton = $langs->trans('ReceiveProducts'); $labelofbutton = $langs->trans('ReceiveProducts');
if ($conf->reception->enabled) { if ($conf->reception->enabled) {
$labelofbutton = $langs->trans("CreateReception"); $labelofbutton = $langs->trans("CreateReception");
if (!empty($object->linkedObjects)) { if (!empty($object->linkedObjects['reception'])) {
foreach ($object->linkedObjects['reception'] as $element) { foreach ($object->linkedObjects['reception'] as $element) {
if ($element->statut >= 0) { if ($element->statut >= 0) {
$hasreception = 1; $hasreception = 1;