Closed RezaNosratabad closed 1 year ago
Before this fix, in template script, inside a foreach that is based on a list from model —@foreach[m:---] instead of @foreach[Entity.---] :
this was working: @[$product.Name] but this one won't: raw[m:ModelMethod($product)]
@[$product.Name]
raw[m:ModelMethod($product)]
fix Templating when reference foreach $variable itself (not its field or property chain)
Before this fix, in template script, inside a foreach that is based on a list from model —@foreach[m:---] instead of @foreach[Entity.---] :
this was working:
@[$product.Name]
but this one won't:raw[m:ModelMethod($product)]