From a5bf594f144274c88c68515b663d702e48380ee3 Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Thu, 30 May 2019 15:33:24 +0200 Subject: [PATCH] Add filter attributes --- src/LabelSelect/widget/LabelSelect.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/LabelSelect/widget/LabelSelect.js b/src/LabelSelect/widget/LabelSelect.js index 2cce6c2..d52b584 100644 --- a/src/LabelSelect/widget/LabelSelect.js +++ b/src/LabelSelect/widget/LabelSelect.js @@ -70,8 +70,12 @@ define([ _fetchCurrentLabels: function(callback) { logger.debug(this.id + "._fetchCurrentLabels"); //fetch all referenced labels - var xpath = "//" + this._tagEntity + this.tagConstraint.replace(/\[\%CurrentObject\%\]/gi, this._contextObj.getGuid()); - var filters = {}; + var filters = { + attributes: [ this._tagAttribute ] + }; + if (this._colorAttribute) { + filters.attributes.push(this._colorAttribute); + } if (this.sortAttr && this.sortOrder) { filters.sort = [ [this.sortAttr, this.sortOrder]