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