Commit 5d92e611 authored by Michael Ritter's avatar Michael Ritter
Browse files

#47 Trigger CollectionCount update after removing MonitoredItems

parent b9ba1b05
......@@ -31,6 +31,7 @@
package edu.umiacs.ace.monitor.core;
import edu.umiacs.ace.monitor.access.CollectionCountContext;
import edu.umiacs.ace.monitor.access.browse.BrowseServlet;
import edu.umiacs.ace.monitor.access.browse.DirectoryTree;
import edu.umiacs.ace.monitor.log.LogEnum;
......@@ -158,6 +159,7 @@ public class RemoveItemServlet extends EntityManagerServlet {
clearDir(em.merge(item));
trans.commit();
reloadTree(dt, parent, c, em);
CollectionCountContext.updateCollection(c);
} catch ( Throwable t ) {
LOG.error("Error removing", t);
} finally {
......@@ -176,7 +178,6 @@ public class RemoveItemServlet extends EntityManagerServlet {
LOG.trace("Removing file: " + mi.getPath());
em.remove(mi);
}
}
em.remove(item);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment