mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
Stringify properties before filtering (#1929)
This commit is contained in:
@@ -979,8 +979,10 @@ module Liquid
|
||||
attr_reader :context
|
||||
|
||||
def filter_array(input, property, target_value, default_value = [], &block)
|
||||
ary = InputIterator.new(input, context)
|
||||
property = Liquid::Utils.to_s(property)
|
||||
return default_value if property.empty?
|
||||
|
||||
ary = InputIterator.new(input, context)
|
||||
return default_value if ary.empty?
|
||||
|
||||
block.call(ary) do |item|
|
||||
|
||||
Reference in New Issue
Block a user