Fix product vat update error handling

Product vat update does not show update error if update result negative.
This commit is contained in:
fappels 2018-05-17 21:29:15 +02:00
parent 08cf034e2f
commit 90d2ccc79c

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');