Skip to content

Commit

Permalink
Add filter attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andries Smit authored and Andries Smit committed May 30, 2019
1 parent 882d040 commit a5bf594
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/LabelSelect/widget/LabelSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a5bf594

Please sign in to comment.