Commit b0dec521 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

dont filter by ids if we don't have ids

parent 75be6bed
Pipeline #56034 passed with stage
in 54 minutes and 55 seconds
......@@ -93,7 +93,9 @@ public class ElementsController extends BaseController {
if (!Objects.equals(modelId, "*")) {
properties.put(ElementProperty.MAP_ID, Arrays.asList(Integer.valueOf(modelId)));
}
if (ids.size() > 0) {
properties.put(ElementProperty.ID, new ArrayList<>(ids));
}
List<Element> allElements = elementService.getElementsByFilter(properties, true);
......
Supports Markdown
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