aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-08-02 17:43:23 +0200
committercedricnjanga2017-08-02 17:44:16 +0200
commit2c6524f88815eee7715e9b0d4ee3082e2d326b05 (patch)
tree8b76a7fc3f77c39803cb191ed4e196ee4e0fefe0 /app/controllers/time_tables_controller.rb
parent420068615d1633a1a9fac48db82d3df04913af9a (diff)
downloadchouette-core-2c6524f88815eee7715e9b0d4ee3082e2d326b05.tar.bz2
Fix date filters for Timetable and workbenches
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb1
1 files changed, 1 insertions, 0 deletions
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')