Merge pull request #8811 from fappels/7.0_fix_product_vat_update_errorhandling

Fix product vat update error handling
This commit is contained in:
Laurent Destailleur 2018-05-18 12:00:03 +02:00 committed by GitHub
commit b5f37b2876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ if (empty($reshook))
$db->begin();
$resql = $object->update($object->id, $user);
if (! $resql)
if (! $resql || $resql < 0)
{
$error++;
setEventMessages($object->error, $object->errors, 'errors');