mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Support filtering by boolean properties, as well as String ones, in GetChildrenCannedQuery
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@38093 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -490,6 +490,14 @@ public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<NodeR
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((filterProp instanceof FilterPropBoolean) && (propVal instanceof Boolean))
|
||||
{
|
||||
Boolean val = (Boolean)propVal;
|
||||
Boolean filter = (Boolean)filterProp.getPropVal();
|
||||
|
||||
return (val == filter);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user