From 1437af62b36c5c302bd40863e6015ebd6744e0c5 Mon Sep 17 00:00:00 2001 From: villian Date: Mon, 3 Sep 2018 17:39:17 +0300 Subject: [PATCH] fix U4-8143 --- .../propertyeditors/contentpicker/contentpicker.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js index 76d6fa77aa39..c1fe21b1b509 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js @@ -35,6 +35,7 @@ function contentPickerController($scope, entityResource, editorState, iconHelper return $scope.model.config.idType === "udi" ? i.udi : i.id; }); $scope.model.value = trim(currIds.join(), ","); + angularHelper.getCurrentForm($scope).$setDirty(); //Validate! if ($scope.model.config && $scope.model.config.minNumber && parseInt($scope.model.config.minNumber) > $scope.renderModel.length) { @@ -185,7 +186,8 @@ function contentPickerController($scope, entityResource, editorState, iconHelper if (angular.isArray(model.selection)) { _.each(model.selection, function (item, i) { $scope.add(item); - }); + }); + angularHelper.getCurrentForm($scope).$setDirty(); } $scope.contentPickerOverlay.show = false;