Skip to content

Commit 23feab5

Browse files
committed
we need '&' here
because we have not yet updated the xlat function argument parser to treat bare words as being attribute references
1 parent 8ec055b commit 23feab5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tests/keywords/attr-index-eval

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ index := 1
88
#
99
# Dynamically create an attribute reference
1010
#
11-
ref = "Filter-Id[" + (string) index + "]"
11+
ref = "&Filter-Id[" + (string) index + "]"
1212

1313
#
1414
# Evaluate the attribute as an unlang expression.

src/tests/keywords/foreach-key-ref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tmp-String-1 := { "a", "b", "c", "d" }
1414
foreach string key, string name (Tmp-String-0[*]) {
1515
total += key
1616
total += " = '"
17-
total += %eval(%{key})
17+
total += %eval(%{"&" + %{key}})
1818
total += "', "
1919
}
2020

0 commit comments

Comments
 (0)