diff --git a/htdocs/product/class/api_products.class.php b/htdocs/product/class/api_products.class.php index a4726405669..d27ac9ad836 100644 --- a/htdocs/product/class/api_products.class.php +++ b/htdocs/product/class/api_products.class.php @@ -1328,7 +1328,7 @@ class Products extends DolibarrApi $objectval = new ProductAttributeValue($this->db); $return = $objectval->fetchAllByProductAttribute((int) $id); - + if (count($return) == 0) { throw new RestException(404, 'Attribute values not found'); }