Skip to content

Commit

Permalink
CBX-397 - Fix model validation on tranlatable field
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Apr 23, 2014
1 parent 1745f12 commit bc3f65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular-activerecord.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ angular.module('ActiveRecord', []).factory('ActiveRecord', ['$http', '$q', '$par
if (typeof sprintf !== "undefined") {
errorMessage = sprintf(errorMessage, {fieldName: mthis.$fieldTranslations[fieldName] || fieldName, fieldValue: prop, validationValue: value});
}
} else {
} else if (functionName === "notEmpty") {
keepGoing = false;
}
}
});
if (keepGoing) errors.push(errorMessage);
if (keepGoing && errorMessage) errors.push(errorMessage);
}
});
} else if (this.$validations[fieldName].required) {
Expand Down

0 comments on commit bc3f65d

Please sign in to comment.