Skip to content

Commit

Permalink
Use absolute references in body
Browse files Browse the repository at this point in the history
These relative refs were likely introduced by analogy to itemset declarations
  • Loading branch information
lognaturel committed Apr 16, 2024
1 parent 5ae6894 commit c72b80b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ private static XFormsElement getSelectFromRepeatForm(String predicate) {
t("select"))))),
body(
repeat("/data/repeat",
input("value"),
input("label")),
input("/data/repeat/value"),
input("/data/repeat/label")),
input("filter"),
select1Dynamic("/data/select", "../repeat" + (!predicate.isEmpty() ? "[" + predicate + "]" : ""))
));
Expand Down Expand Up @@ -274,7 +274,7 @@ public void selectInRepeat_withRefToRepeatChildInPredicate_evaluatesChoiceListFo
item("bb", "BB")))),
body(
repeat("/data/repeat",
input("filter"),
input("/data/filter"),
select1Dynamic("/data/repeat/select", "instance('choices')/root/item[starts-with(value,current()/../filter)]"))
)));

Expand Down

0 comments on commit c72b80b

Please sign in to comment.