diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php index c73657a8e1d..3f49be10660 100644 --- a/htdocs/reception/card.php +++ b/htdocs/reception/card.php @@ -426,7 +426,7 @@ if (empty($reshook)) else if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->reception->supprimer) { - $result = $object->delete(); + $result = $object->delete($user); if ($result > 0) { header("Location: ".DOL_URL_ROOT.'/reception/index.php'); @@ -567,7 +567,6 @@ if (empty($reshook)) { if ($lines[$i]->id == $line_id) { - // delete single warehouse line $line->id = $line_id; if (! $error && $line->delete($user) < 0) @@ -1163,7 +1162,8 @@ if ($action == 'create') if (!empty($conf->productbatch->enabled)) { - if( !empty($product->status_batch)){ + if (!empty($product->status_batch)) + { print '