From a8bcf2864f24a77716ff0c6dceea12d1855271c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 28 Apr 2020 11:10:45 +0200 Subject: [PATCH] avoid breaking change of serverValidationManager.hasPropertyError() --- .../src/common/services/servervalidationmgr.service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/servervalidationmgr.service.js b/src/Umbraco.Web.UI.Client/src/common/services/servervalidationmgr.service.js index 4f2abe9f78..d0a32af631 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/servervalidationmgr.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/servervalidationmgr.service.js @@ -384,7 +384,7 @@ function serverValidationManager($timeout) { } //only add the item if it doesn't exist - if (!this.hasPropertyError(propertyAlias, culture, segment, fieldName)) { + if (!this.hasPropertyError(propertyAlias, culture, fieldName, segment)) { this.items.push({ propertyAlias: propertyAlias, culture: culture, @@ -482,7 +482,7 @@ function serverValidationManager($timeout) { * @description * Gets the error message for the content property */ - getPropertyError: function (propertyAlias, culture, segment, fieldName) { + getPropertyError: function (propertyAlias, culture, fieldName, segment) { //normalize culture to "invariant" if (!culture) { @@ -526,7 +526,7 @@ function serverValidationManager($timeout) { * @description * Checks if the content property + culture + field name combo has an error */ - hasPropertyError: function (propertyAlias, culture, segment, fieldName) { + hasPropertyError: function (propertyAlias, culture, fieldName, segment) { //normalize culture to null if (!culture) {