diff --git a/process/Attribute_lib/process.js b/process/Attribute_lib/process.js index b7b8f699980ce3f83df7a4426019d916ab9c70fe..5e0df4bb1e20aafd4afbb64f3f6abfc515939c0e 100644 --- a/process/Attribute_lib/process.js +++ b/process/Attribute_lib/process.js @@ -1624,7 +1624,8 @@ AttributeRelationQuery.prototype.getSingleAttributeValue = function () AttributeRelationQuery.prototype.getAttributeCount = function () { return parseInt(AttributeRelationUtils.getAttributeSqlBuilder("count(*)", this._rowId, this._objectType) - .andIfSet("AB_ATTRIBUTERELATION.AB_ATTRIBUTE_ID", this._attributeIds, SqlBuilder.IN()) + .and(newWhereIfSet( "AB_ATTRIBUTERELATION.AB_ATTRIBUTE_ID", this._attributeIds, SqlBuilder.IN()) + .orIfSet("AB_ATTRIBUTERELATION.ID_VALUE", this._attributeIds, SqlBuilder.IN())) .cell() || 0); }