summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/beans/ProductManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/beans/ProductManager.java b/src/beans/ProductManager.java
index b9e5bfb..77e1c72 100644
--- a/src/beans/ProductManager.java
+++ b/src/beans/ProductManager.java
@@ -133,6 +133,7 @@ public class ProductManager {
ca.getProducts().remove(current);
manager.merge(ca);
+ // Delete product only from this category if it is in other categories
if (current.getCategories().isEmpty()) {
manager.remove(current);
current = null;