visibility rule fix on word builder

This commit is contained in:
Diamantis Tziotzios 2022-02-04 18:17:51 +02:00
parent 2b71cddc39
commit 14550e0536
1 changed files with 1 additions and 2 deletions

View File

@ -43,13 +43,12 @@ public class VisibilityRuleServiceImpl implements VisibilityRuleService {
for(int i = 0; i < sources.size(); i++){ 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()))) { 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); this.elementVisibility.put(rule.getVisibilityRuleTargetId(), true);
}else{ } else {
if (this.elementVisibility.containsKey(rule.getVisibilityRuleTargetId())) { if (this.elementVisibility.containsKey(rule.getVisibilityRuleTargetId())) {
this.elementVisibility.put(rule.getVisibilityRuleTargetId(), this.elementVisibility.get(rule.getVisibilityRuleTargetId()) || false); this.elementVisibility.put(rule.getVisibilityRuleTargetId(), this.elementVisibility.get(rule.getVisibilityRuleTargetId()) || false);
} else { } else {
this.elementVisibility.put(rule.getVisibilityRuleTargetId(), false); this.elementVisibility.put(rule.getVisibilityRuleTargetId(), false);
} }
return;
} }
} }
} }