From 90d2ccc79caff16e5efd4275f514bc8679ce743f Mon Sep 17 00:00:00 2001 From: fappels Date: Thu, 17 May 2018 21:29:15 +0200 Subject: [PATCH] Fix product vat update error handling Product vat update does not show update error if update result negative. --- htdocs/product/price.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/price.php b/htdocs/product/price.php index a2afb5f9bb8..fc5c20c3d1a 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -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');