mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2026-10-16 15:39:26 +00:00
[CLIENT] #16 : correction d'un bug empêchant la suppression de produit
This commit is contained in:
1 parent
0a5db85a9a
commit
9b847e61d0
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user