mirror of
https://github.com/Shopify/liquid.git
synced 2025-09-21 00:00:32 -04:00
Use find_variable for parentloop
This commit is contained in:
parent
8a8996387b
commit
239cfa5a44
@ -99,7 +99,7 @@ module Liquid
|
||||
# Store our progress through the collection for the continue flag
|
||||
context.registers[:for][@name] = from + segment.length
|
||||
|
||||
parent_loop = context['forloop'.freeze]
|
||||
parent_loop = context.find_variable('forloop'.freeze)
|
||||
|
||||
context.stack do
|
||||
segment.each_with_index do |item, index|
|
||||
|
Loading…
x
Reference in New Issue
Block a user