mod/search/set/abstract/wql_search.rb in card-1.96.1 vs mod/search/set/abstract/wql_search.rb in card-1.96.2

- old
+ new

@@ -57,18 +57,28 @@ def empty_query_error! raise Error::BadQuery, "Error in card '#{name}':can't run search with empty content" end +def item_type + type = wql_hash[:type] + return if type.is_a?(Array) || type.is_a?(Hash) + type +end + format do def default_limit card_content_limit || super end def card_content_limit card.wql_hash[:limit] rescue nil + end + + def implicit_item_view + super query_with_params.statement[:item] end def query_with_params @query_with_params ||= card.fetch_query search_params end