Bug fix for CRIS reSubmition

This commit is contained in:
Ioannis Diplas 2020-01-10 14:04:41 +00:00
parent e33df7fe42
commit 62c228ca42
1 changed files with 5 additions and 2 deletions

View File

@ -165,12 +165,15 @@ public class ValidatorServiceImpl implements ValidatorService {
RuleSet ruleSet = null;
for (List<RuleSet> ruleSets : this.rulesetMap.values()) {
for (RuleSet rSet : ruleSets)
if (rSet.getGuidelinesAcronym().equals(job.getDesiredCompatibilityLevel())) {
for (RuleSet rSet : ruleSets) {
if (rSet.getName().equalsIgnoreCase("CRIS Validation")) {
}else if(rSet.getGuidelinesAcronym().equals(job.getDesiredCompatibilityLevel())){
ruleSet = rSet;
break;
}
}
}
if (ruleSet != null){
for (int ruleId : job.getRules()) {
if (ruleSet.getContentRulesIds().contains(ruleId))