From 0b5622ba1736be0edd02bcf1ba27e885d9048ba8 Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Thu, 12 Sep 2024 07:14:25 +0200 Subject: [PATCH] #5050 - Tags on the second level of conditional features cannot be selected - Fix the logic --- .../webanno/constraints/evaluator/ConstraintsEvaluator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inception/inception-constraints/src/main/java/de/tudarmstadt/ukp/clarin/webanno/constraints/evaluator/ConstraintsEvaluator.java b/inception/inception-constraints/src/main/java/de/tudarmstadt/ukp/clarin/webanno/constraints/evaluator/ConstraintsEvaluator.java index 2b9eeff26c5..51c415b765a 100644 --- a/inception/inception-constraints/src/main/java/de/tudarmstadt/ukp/clarin/webanno/constraints/evaluator/ConstraintsEvaluator.java +++ b/inception/inception-constraints/src/main/java/de/tudarmstadt/ukp/clarin/webanno/constraints/evaluator/ConstraintsEvaluator.java @@ -100,7 +100,9 @@ public boolean anyRuleAffectingFeatureMatchesAllConditions(ParsedConstraints aCo for (var rule : scope.getRules()) { if (allRuleConditionsMatch(aConstraints, rule, aContext)) { - return anyRestrictionAffectsFeature(aConstraints, rule, aFeature); + if (anyRestrictionAffectsFeature(aConstraints, rule, aFeature)) { + return true; + } } }