aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorjpl2017-04-11 14:32:44 +0200
committerjpl2017-04-11 14:32:52 +0200
commit3862831d652caa0d6085af5aa2dffded2b47bb1b (patch)
tree6c546dc92bd0cbfded5ef96597d8decee7f7a795 /app/controllers/time_tables_controller.rb
parentcacf29a1b4a679e70a017053ed25e0ed7d095d10 (diff)
downloadchouette-core-3862831d652caa0d6085af5aa2dffded2b47bb1b.tar.bz2
Refs #2909: working on tt#index filters/search
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index 2e03485f2..cb7c96e03 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -95,7 +95,7 @@ class TimeTablesController < ChouetteController
def collection
ransack_params = params[:q]
# Hack to delete params can't be used by ransack
- tag_search = ransack_params["tag_search"].split(",").collect(&:strip) if ransack_params.present? && ransack_params["tag_search"].present?
+ tag_search = ransack_params["tag_search"] if ransack_params.present? && ransack_params["tag_search"].present?
ransack_params.delete("tag_search") if ransack_params.present?
selected_time_tables = tag_search ? select_time_tables.tagged_with(tag_search, :wild => true, :any => true) : select_time_tables