From 913b923886643168f1edf795b0c0ac557dddc3b4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 Sep 2012 15:09:48 +0200 Subject: [PATCH] Fix: error report when duplicate product --- htdocs/product/class/product.class.php | 1 + 1 file changed, 1 insertion(+) 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"; } }