avoid breaking change of serverValidationManager.addPropertyError and serverValidationManager.removePropertyError

This commit is contained in:
Niels Lyngsø
2020-04-28 11:08:20 +02:00
parent 4b8f29a981
commit 6a5a338d7c
2 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ function valServer(serverValidationManager) {
if (modelCtrl.$invalid) {
modelCtrl.$setValidity('valServer', true);
//clear the server validation entry
serverValidationManager.removePropertyError(currentProperty.alias, currentCulture, currentSegment, fieldName);
serverValidationManager.removePropertyError(currentProperty.alias, currentCulture, fieldName, currentSegment);
stopWatch();
}
}, true);

View File

@@ -369,7 +369,7 @@ function serverValidationManager($timeout) {
* @description
* Adds an error message for the content property
*/
addPropertyError: function (propertyAlias, culture, segment, fieldName, errorMsg) {
addPropertyError: function (propertyAlias, culture, fieldName, errorMsg, segment) {
if (!propertyAlias) {
return;
}
@@ -420,7 +420,7 @@ function serverValidationManager($timeout) {
* @description
* Removes an error message for the content property
*/
removePropertyError: function (propertyAlias, culture, segment, fieldName) {
removePropertyError: function (propertyAlias, culture, fieldName, segment) {
if (!propertyAlias) {
return;