diff options
| author | Michel Etienne | 2014-08-12 16:59:23 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-08-12 16:59:23 +0200 |
| commit | 6fa03cfc0be70dfb5dc2566d1613027063cdfeb3 (patch) | |
| tree | c1281b7f4316984a670fd20a06e1521f6a78d23f /app/controllers | |
| parent | 2a5190da6ae7608041e6adec970fb1190d866b5c (diff) | |
| download | chouette-core-6fa03cfc0be70dfb5dc2566d1613027063cdfeb3.tar.bz2 | |
combine time_table in modal form
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index e1d070f94..ea08bb487 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -73,7 +73,7 @@ class TimeTablesController < ChouetteController tag_search = ransack_params["tag_search"].split(",").collect(&:strip) if ransack_params.present? && ransack_params["tag_search"].present? ransack_params.delete("tag_search") if ransack_params.present? - select_time_tables = tag_search ? referential.time_tables.tagged_with(tag_search, :match_all => true) : referential.time_tables + select_time_tables = tag_search ? referential.time_tables.tagged_with(tag_search) : referential.time_tables @q = select_time_tables.search(ransack_params) @time_tables ||= @q.result(:distinct => true).order(:comment).paginate(:page => params[:page]) end |
