Skip to content
Snippets Groups Projects
Commit 5babf661 authored by Markus Escher's avatar Markus Escher
Browse files

add vars.exists check for Attribute_entity condition

parent 7647977f
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ var condition = "AB_ATTRIBUTE.ATTRIBUTE_TYPE = '" + $AttributeTypes.GROUP + "'";
if (vars.exists("$param.attrParentId_param") && vars.get("$param.attrParentId_param"))
condition = "AB_ATTRIBUTE.AB_ATTRIBUTEID in ('" + AttributeUtil.getAllChildren(vars.getString("$param.attrParentId_param")).join("','") + "')";
else if (vars.get("$param.attrParentId_param") !== "")
else if (vars.exists("$param.attrParentId_param") && vars.get("$param.attrParentId_param") !== "")
condition = "";
result.string(condition);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment