Commit 21f512b6 authored by Mathieu Gicquel's avatar Mathieu Gicquel
Browse files

Bug fix #39

parent c67b6f16
......@@ -116,7 +116,9 @@ public abstract class AbstractProject extends AbstractServerObject implements IP
if(this.isTrash()) throw new IllegalStateException("cannot trash a trashed project");
this.setTrash(true);
this.getTasksList().forEach(ITask::putInTrash);
while (!this.getTasksList().isEmpty()) {
this.getTasksList().get(0).putInTrash();
}
}
@Override
......
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