Skip to content

Commit

Permalink
after war
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkan-khd committed Jun 26, 2020
1 parent 2d128d3 commit 1fd1d0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/controller/account/AdminControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ private Notification approveProductByID(String id){
private Notification acceptEditingProductByID(String editingProductID) {
try {
Product editingProduct = EditingProductTable.getEditingProductWithID(editingProductID);
editingProduct.setApprovalDate(ProductTable.getProductByID(editingProductID).getApprovalDate());
editingProduct.setSeen(ProductTable.getProductByID(editingProductID).getSeen());
EditingProductTable.removeProductById(editingProductID);
ProductTable.removeProductByID(editingProduct.getID());
Expand Down

0 comments on commit 1fd1d0f

Please sign in to comment.