mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fetch undated order cycles by default for index actions
This commit is contained in:
@@ -114,7 +114,7 @@ module Admin
|
||||
def load_data_for_index
|
||||
@show_more = !!params[:show_more]
|
||||
params[:q] ||= {}
|
||||
params[:q][:orders_close_at_gt] = 31.days.ago unless @show_more || params[:q][:orders_close_at_gt].present?
|
||||
params[:q][:orders_close_at_null_or_orders_close_at_gt] = 31.days.ago unless @show_more || params[:q][:orders_close_at_gt].present?
|
||||
@order_cycle_set = OrderCycleSet.new :collection => (@collection = collection)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user