Skip to content
Snippets Groups Projects
Commit 25790dd7 authored by S.Listl's avatar S.Listl
Browse files

Attribute fix

parent 916a45cd
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ function AttributeUtil () {}
*/
AttributeUtil.getPossibleAttributes = function (pObjectType, pIncludeGroups, pFilteredAttributeIds, pAttributeCount)
{
if (pObjectType == null)
if (pObjectType == null || (pFilteredAttributeIds && pFileredAttributeIds.length == 0))
return [];
var attrSql = "select AB_ATTRIBUTEID from AB_ATTRIBUTE"
......@@ -52,7 +52,7 @@ AttributeUtil.getPossibleAttributes = function (pObjectType, pIncludeGroups, pFi
}
}
if (pFilteredAttributeIds != undefined && pFilteredAttributeIds.length > 0)
if (pFilteredAttributeIds)
{
var filteredIdsCondition = new SqlCondition();
var filteredIdChildren = AttributeUtil.getAllChildren(pFilteredAttributeIds);
......
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