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