Fix for applying searchResultFormatter on found searchresults (#9738)

* Fix for applying searchResultFormatter on found searchresults

We found out that when the searchbox in the linkpicker is used, the URL of a page is not being shown anymore since Umbraco 8.7 and later. This is because of the searchResultFormatter wasn't applied correct.

* Changed ES6 arrow syntax as with the other functions.

Changed ES6 arrow syntax as with the other functions.

* Changed single qoutes to double qoutes for type
This commit is contained in:
mcl-sz
2021-02-02 00:33:31 +01:00
committed by GitHub
parent 6e1c29232a
commit 4f3191fabe

View File

@@ -67,10 +67,11 @@ angular.module('umbraco.services')
}
return entityResource.search(args.term, "Document", args.searchFrom, args.canceler, args.dataTypeKey)
_.each(data, function (item) {
.then(data => {
data.forEach(item => searchResultFormatter.configureContentResult(item));
return data;
});
},
/**