Fix for word generator not merging multiple visibility rule results

This commit is contained in:
Diamantis Tziotzios 2022-02-04 16:38:05 +02:00
parent e9b0bcf102
commit 2b71cddc39
1 changed files with 5 additions and 1 deletions

View File

@ -43,8 +43,12 @@ public class VisibilityRuleServiceImpl implements VisibilityRuleService {
for(int i = 0; i < sources.size(); i++){
if (properties.containsKey(sources.get(i).getVisibilityRuleSourceId()) && (isContained(properties.get(sources.get(i).getVisibilityRuleSourceId()), sources.get(i).getVisibilityRuleSourceValue()) || properties.get(sources.get(i).getVisibilityRuleSourceId()).equals(sources.get(i).getVisibilityRuleSourceValue()))) {
this.elementVisibility.put(rule.getVisibilityRuleTargetId(), true);
}else{
if (this.elementVisibility.containsKey(rule.getVisibilityRuleTargetId())) {
this.elementVisibility.put(rule.getVisibilityRuleTargetId(), this.elementVisibility.get(rule.getVisibilityRuleTargetId()) || false);
} else {
this.elementVisibility.put(rule.getVisibilityRuleTargetId(), false);
}
return;
}
}