Fix product vat update error handling
Product vat update does not show update error if update result negative.
This commit is contained in:
parent
08cf034e2f
commit
90d2ccc79c
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user