Reverts PR #5693 - we need to update the linkpicker search instead to return the correct results for us

This commit is contained in:
Sebastiaan Janssen
2019-06-27 13:18:45 +02:00
parent cb7300688c
commit 80ffd026f6

View File

@@ -150,7 +150,7 @@ angular.module("umbraco").controller("Umbraco.Editors.LinkPickerController",
function handleContentTarget(content) {
$scope.anchorValues = tinyMceService.getAnchorNames(JSON.stringify(contentEditingHelper.getAllProps(content.variants[0])));
$scope.model.target.url = content.urls.filter(item => item.culture === $scope.currentNode.metaData.culture)[0].text;
$scope.model.target.url = content.urls[0].text;
}
function nodeExpandedHandler(args) {