diff --git a/src/main/java/de/metas/ui/web/process/adprocess/ADProcessInstancesRepository.java b/src/main/java/de/metas/ui/web/process/adprocess/ADProcessInstancesRepository.java index 0f1085366..6b9805e44 100644 --- a/src/main/java/de/metas/ui/web/process/adprocess/ADProcessInstancesRepository.java +++ b/src/main/java/de/metas/ui/web/process/adprocess/ADProcessInstancesRepository.java @@ -222,7 +222,7 @@ private ProcessInfo createProcessInfo(@NonNull final CreateProcessInstanceReques recordId = -1; } - sqlWhereClause = view.getSqlWhereClause(viewDocumentIds); + sqlWhereClause = viewDocumentIds.isEmpty() ? null : view.getSqlWhereClause(viewDocumentIds); } // // Single document call