work around R6 validation issue validating search parameters

This commit is contained in:
Grahame Grieve 2023-12-12 20:32:19 +13:00
parent cc424a04e1
commit 289a74301d
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ public class SearchParameterValidator extends BaseValidator {
for (Element b : cs.getChildrenByName("base")) {
bases.add(b.primitiveValue());
}
ok = checkExpression(errors, stack.push(cs.getNamedChild("expression", false), -1, null, null), cs.getNamedChildValue("expression", false), bases) && ok;
if (!bases.isEmpty()) {
ok = checkExpression(errors, stack.push(cs.getNamedChild("expression", false), -1, null, null), cs.getNamedChildValue("expression", false), bases) && ok;
}
}
String master = cs.getNamedChildValue("derivedFrom", false);
if (!Utilities.noString(master)) {