From 2c6524f88815eee7715e9b0d4ee3082e2d326b05 Mon Sep 17 00:00:00 2001 From: cedricnjanga Date: Wed, 2 Aug 2017 17:43:23 +0200 Subject: Fix date filters for Timetable and workbenches --- app/controllers/time_tables_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers/time_tables_controller.rb') diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index 2ff7a2c3a..0054963c9 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -161,6 +161,7 @@ class TimeTablesController < ChouetteController private def ransack_periode scope return scope unless params[:q] + return scope unless params[:q]['end_date_lteq(1i)'].present? begin_range = flatten_date('start_date_gteq') end_range = flatten_date('end_date_lteq') -- cgit v1.2.3