diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 39d514defa1..62365027f6d 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -363,6 +363,7 @@ class Product extends CommonObject { // Product already exists with this ref $langs->load("products"); + $error++; $this->error = "ErrorProductAlreadyExists"; } }