Skip to content

Commit 71a8003

Browse files
committed
Use interpreter.resolveProperty instead of invoking the read method
directly
1 parent 03758f3 commit 71a8003

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/hubspot/jinjava/lib/tag/ForTag.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public String renderForCollection(
247247
if (loopVar.equals(valProp.getName())) {
248248
interpreter
249249
.getContext()
250-
.put(loopVar, valProp.getReadMethod().invoke(val));
250+
.put(loopVar, interpreter.resolveProperty(val, valProp.getName()));
251251
break;
252252
}
253253
}

0 commit comments

Comments
 (0)