diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js index b1f69ba2f2e1..3b4642dd9b06 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js @@ -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) }); });