File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/main/java/com/hubspot/jinjava/lib/fn Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,11 @@ public String getEvaluationResult(
127
127
);
128
128
} else {
129
129
if (!alreadyDeferredInEarlierCall (scopeEntry .getKey (), interpreter )) {
130
+ if (
131
+ interpreter .getContext ().get (scopeEntry .getKey ()) == scopeEntry .getValue ()
132
+ ) {
133
+ continue ; // don't override if it's the same object
134
+ }
130
135
interpreter .getContext ().put (scopeEntry .getKey (), scopeEntry .getValue ());
131
136
}
132
137
}
Original file line number Diff line number Diff line change @@ -126,6 +126,12 @@ public Object doEvaluate(
126
126
);
127
127
throw new DeferredInvocationResolutionException (tempVarName );
128
128
}
129
+ if (!eagerExecutionResult .getResult ().isFullyResolved ()) {
130
+ return EagerReconstructionUtils .wrapInChildScope (
131
+ eagerExecutionResult .getResult ().toString (true ),
132
+ interpreter
133
+ );
134
+ }
129
135
return eagerExecutionResult .getResult ().toString (true );
130
136
}
131
137
You can’t perform that action at this time.
0 commit comments