Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #169 from AppliedIS/bugs-validation
Browse files Browse the repository at this point in the history
Fixes for validation issues.
  • Loading branch information
klinden committed Nov 22, 2016
2 parents b069b38 + ad9d6b7 commit 919d589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ module.exports = function(ngModule) {
return undefined;
}

return validationService.getValidationErrors($scope.modelPrefix() + '.sourceEmployers[' + index + ']');
return validationService.getValidationErrors($scope.modelPrefix() + '.mostRecentPrevailingWageSurvey.sourceEmployers[' + index + ']');
}

this.validateActiveSourceEmployerProperty = function(prop) {
if (!prop || this.activeSourceEmployerIndex < 0) {
return undefined;
}

return validationService.getValidationErrors($scope.modelPrefix() + '.sourceEmployers[' + this.activeSourceEmployerIndex + '].' + prop);
return validationService.getValidationErrors($scope.modelPrefix() + '.mostRecentPrevailingWageSurvey.sourceEmployers[' + this.activeSourceEmployerIndex + '].' + prop);
}
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ module.exports = function(ngModule) {

let primaryDisability = this.checkRequiredMultipleChoice(subprefix + ".primaryDisabilityId");
if (primaryDisability === _constants.responses.primaryDisability.other) {
this.checkRequiredString(subprefix + "." + _constants.primaryDisability.otherValueKey);
this.checkRequiredString(subprefix + "." + _constants.responses.primaryDisability.otherValueKey);
}

this.checkRequiredString(subprefix + ".workType");
Expand Down

0 comments on commit 919d589

Please sign in to comment.