Skip to content

Commit

Permalink
Readonly only fetch current labels
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 a5bf594 commit 350eb70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file modified dist/LabelSelect.mpk
Binary file not shown.
5 changes: 4 additions & 1 deletion src/LabelSelect/widget/LabelSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ define([
[this.sortAttr, this.sortOrder]
];
}
var xpath = "//" + this._tagEntity + this.tagConstraint.replace(/\[\%CurrentObject\%\]/gi, this._contextObj.getGuid());
var refObjs = this._contextObj.get(this._refAttribute) || [];
mx.data.get({
xpath: xpath,
xpath: !this._readOnly ? xpath : undefined,
guids: this._readOnly ? refObjs : undefined,
filter: filters,
callback: lang.hitch(this, this._processTags, callback),
error: lang.hitch(this, function(err) {
Expand Down
Binary file modified test/widgets/LabelSelect.mpk
Binary file not shown.

0 comments on commit 350eb70

Please sign in to comment.