Skip to content

Commit

Permalink
Fix product vat update error handling
Browse files Browse the repository at this point in the history
Product vat update does not show update error if update result negative.
  • Loading branch information
fappels committed May 17, 2018
1 parent 08cf034 commit 90d2ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/product/price.php
Expand Up @@ -152,7 +152,7 @@
$db->begin();

$resql = $object->update($object->id, $user);
if (! $resql)
if (! $resql || $resql < 0)
{
$error++;
setEventMessages($object->error, $object->errors, 'errors');
Expand Down

0 comments on commit 90d2ccc

Please sign in to comment.