mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
[StandardFilter] Fix missing @context on iterations
This commit is contained in:
@@ -582,8 +582,9 @@ module Liquid
|
||||
|
||||
def each
|
||||
@input.each do |e|
|
||||
e = e.respond_to?(:to_liquid) ? e.to_liquid : e
|
||||
e.context = @context if e.respond_to?(:context=)
|
||||
yield(e.respond_to?(:to_liquid) ? e.to_liquid : e)
|
||||
yield(e)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user