diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js index eb6d5cf455..bc8783edc5 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js @@ -348,7 +348,7 @@ var tokens = [iVariant.language.name]; localizationService.localize("publish_contentPublishedFailedByMissingName", tokens).then(function (value) { - iVariant.warnings = {"message": value}; + iVariant.warnings = [{"message": value}]; }); return $q(function(resolve, reject) { diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js index 7fc202e897..63a60dc5b0 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js @@ -105,6 +105,11 @@ vm.variants = $scope.model.variants; + + // create warnings array for each variant. This is needed for angular to watch the array. + _.forEach(vm.variants, function(varaint) { + varaint.warnings = []; + }); if (!$scope.model.title) { localizationService.localize("content_readyToPublish").then(function (value) {