From 9b847e61d080a4cc95da97ae8b1397a9dd4e7f60 Mon Sep 17 00:00:00 2001 From: "Notmoo-PC\\Notmoo" Date: Wed, 24 Jan 2018 21:52:01 +0100 Subject: [PATCH] =?UTF-8?q?[CLIENT]=20#16=20:=20correction=20d'un=20bug=20?= =?UTF-8?q?emp=C3=AAchant=20la=20suppression=20de=20produit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/pqt/client/module/stock/UpdateBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Workspace/client/src/main/java/com/pqt/client/module/stock/UpdateBuilder.java b/Workspace/client/src/main/java/com/pqt/client/module/stock/UpdateBuilder.java index f471916b..7431cfd2 100644 --- a/Workspace/client/src/main/java/com/pqt/client/module/stock/UpdateBuilder.java +++ b/Workspace/client/src/main/java/com/pqt/client/module/stock/UpdateBuilder.java @@ -24,8 +24,8 @@ public class UpdateBuilder { } public UpdateBuilder removeProduct(Product product) { - if(toRemove.contains(product)){ - toRemove.remove(product); + if(!toRemove.contains(product)){ + toRemove.add(product); } return this; }