Skip to content

Commit

Permalink
Merge pull request #22539 from colemanw/searchKitTokenFix
Browse files Browse the repository at this point in the history
SearchKit - Fix token selector to use expression alias
  • Loading branch information
eileenmcnaughton authored Jan 17, 2022
2 parents 8ecbb24 + 8814f44 commit 51fcff7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
var allFields = ctrl.admin.getAllFields(ctrl.suffix || '', ['Field', 'Custom', 'Extra', 'Pseudo']);
_.eachRight(ctrl.admin.savedSearch.api_params.select, function(fieldName) {
allFields.unshift({
id: fieldName,
id: _.last(fieldName.split(' AS ')),
text: searchMeta.getDefaultLabel(fieldName)
});
});
Expand Down

0 comments on commit 51fcff7

Please sign in to comment.