aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorXinhui2017-10-17 14:54:41 +0200
committerXinhui2017-10-17 14:54:55 +0200
commit4bb7669f00b7e6e622f966a11b4c727938838f22 (patch)
treec82537270c06b522c61cc5767cff6612d9e430c4 /app/controllers/time_tables_controller.rb
parent58cfec64c621d1c6893280f5ad8793af81573199 (diff)
downloadchouette-core-4bb7669f00b7e6e622f966a11b4c727938838f22.tar.bz2
Fix time_tables#index tags form should display searched tags on submit
Refs #4711
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index 2d24d5aa6..af74f635f 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -130,7 +130,6 @@ class TimeTablesController < ChouetteController
scope = select_time_tables
if params[:q] && params[:q]["tag_search"]
tags = params[:q]["tag_search"].reject {|c| c.empty?}
- params[:q].delete("tag_search")
scope = select_time_tables.tagged_with(tags, :any => true) if tags.any?
end
scope = self.ransack_period_range(scope: scope, error_message: t('referentials.errors.validity_period'), query: :overlapping)