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:
@@ -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;
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user