mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
[CLIENT] #16 : correction d'un bug empêchant la suppression de produit
This commit is contained in:
parent
0a5db85a9a
commit
9b847e61d0
@ -24,8 +24,8 @@ public class UpdateBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public UpdateBuilder removeProduct(Product product) {
|
public UpdateBuilder removeProduct(Product product) {
|
||||||
if(toRemove.contains(product)){
|
if(!toRemove.contains(product)){
|
||||||
toRemove.remove(product);
|
toRemove.add(product);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user