avoid breaking change of serverValidationManager.hasPropertyError()

This commit is contained in:
Niels Lyngsø
2020-04-28 11:10:45 +02:00
parent 370981e214
commit a8bcf2864f

View File

@@ -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) {