avoid breaking change of serverValidationManager.addPropertyError and serverValidationManager.removePropertyError
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user