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

@ -44,7 +44,11 @@ public class VisibilityRuleServiceImpl implements VisibilityRuleService {
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{
this.elementVisibility.put(rule.getVisibilityRuleTargetId(), false);
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;
}
}