diff --git a/entity/Attribute_entity/recordcontainers/jdito/contentProcess.js b/entity/Attribute_entity/recordcontainers/jdito/contentProcess.js
index 7e391fd02b0fc4b219d252fc0b7e021670c739b1..6248fae571eb24e8cd7bc79fb5b35fe45df58a6d 100644
--- a/entity/Attribute_entity/recordcontainers/jdito/contentProcess.js
+++ b/entity/Attribute_entity/recordcontainers/jdito/contentProcess.js
@@ -59,7 +59,7 @@ else if (parentId)
         condition.and("AB_ATTRIBUTE.ATTRIBUTE_PARENT_ID", parentId);
     else
     {
-        condition.and("AB_ATTRIBUTE.AB_ATTRIBUTEID", AttributeUtil.getAllChildren(parentId), SqlBuilder.IN());
+        condition.andIfSet("AB_ATTRIBUTE.AB_ATTRIBUTEID", AttributeUtil.getAllChildren(parentId), SqlBuilder.IN());
         translateName = true;
         if(includeParentRecord)
             condition.or("AB_ATTRIBUTE.AB_ATTRIBUTEID", parentId);