Merge pull request #7130 from fappels/6.0_fix_delete_product

Fix delete product from product card
This commit is contained in:
Laurent Destailleur 2017-07-10 21:26:12 +02:00 committed by GitHub
commit baf6533ea4

View File

@ -561,7 +561,7 @@ if (empty($reshook))
{ {
if (($object->type == Product::TYPE_PRODUCT && $user->rights->produit->supprimer) || ($object->type == Product::TYPE_SERVICE && $user->rights->service->supprimer)) if (($object->type == Product::TYPE_PRODUCT && $user->rights->produit->supprimer) || ($object->type == Product::TYPE_SERVICE && $user->rights->service->supprimer))
{ {
$result = $object->delete(DolibarrApiAccess::$user); $result = $object->delete($user);
} }
if ($result > 0) if ($result > 0)