diff options
| author | cedricnjanga | 2017-07-12 10:01:47 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-07-12 11:06:32 +0200 |
| commit | 74da5aa9fdfa792cfbef2fcfc23c35d9a0b19408 (patch) | |
| tree | 179f8b1218310b6dd2126d1ee4e12f2b0ae39c14 /app/controllers | |
| parent | e99a5eb5e870230e62cd4f2ccc4fcd0803e035eb (diff) | |
| download | chouette-core-74da5aa9fdfa792cfbef2fcfc23c35d9a0b19408.tar.bz2 | |
#4015 adjust Tag filter to be strict
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 f23e4c201..0b3d704ee 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -117,7 +117,7 @@ class TimeTablesController < ChouetteController end def tags - @tags = ActsAsTaggableOn::Tag.where("tags.name LIKE ?", "%#{params[:tag]}%") + @tags = ActsAsTaggableOn::Tag.where("tags.name = ?", "%#{params[:tag]}%") respond_to do |format| format.json { render :json => @tags.map{|t| {:id => t.id, :name => t.name }} } end |
