mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-12-22 15:31:08 +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) {
|
||||
if(toRemove.contains(product)){
|
||||
toRemove.remove(product);
|
||||
if(!toRemove.contains(product)){
|
||||
toRemove.add(product);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user