From 16813c1bc4d0be7d0492b15fe2ee48850af56166 Mon Sep 17 00:00:00 2001 From: Teo Sarca Date: Thu, 18 May 2017 18:46:33 +0300 Subject: [PATCH] fix error https://github.com/metasfresh/metasfresh-webui-api/issues/392 --- .../ui/web/process/adprocess/ADProcessInstancesRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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