diff --git a/src/main/java/org/olat/modules/qpool/ui/datasource/PoolItemsSource.java b/src/main/java/org/olat/modules/qpool/ui/datasource/PoolItemsSource.java index 4ef98dfe559fc6ee6b70ee1c9d8a2f81fcc0199f..7227fafa04b5b0c0eeaf81d2348312b652ca2e1e 100644 --- a/src/main/java/org/olat/modules/qpool/ui/datasource/PoolItemsSource.java +++ b/src/main/java/org/olat/modules/qpool/ui/datasource/PoolItemsSource.java @@ -26,6 +26,7 @@ import org.olat.core.id.Identity; import org.olat.core.id.Roles; import org.olat.modules.qpool.Pool; import org.olat.modules.qpool.QuestionItem; +import org.olat.modules.qpool.QuestionItemShort; /** * @@ -42,13 +43,17 @@ public class PoolItemsSource extends DefaultItemsSource { this.pool = pool; getDefaultParams().setPoolKey(pool.getKey()); } + + @Override + public void removeFromSource(List<QuestionItemShort> items) { + qpoolService.removeItemsInPool(items, pool); + } @Override public int postImport(List<QuestionItem> items) { if(items == null || items.isEmpty()) return 0; qpoolService.addItemsInPools(items, Collections.singletonList(pool), false); return items.size(); - } @Override