Fix bug.
This commit is contained in:
parent
6e2a4ac3e9
commit
1af065b201
|
@ -171,7 +171,7 @@ class EventNewsModsController < ApplicationController
|
||||||
cats = cats.uniq
|
cats = cats.uniq
|
||||||
tags = tags.uniq
|
tags = tags.uniq
|
||||||
tags_translations = {'all' => I18n.t(:all)}
|
tags_translations = {'all' => I18n.t(:all)}
|
||||||
Tag.where(:id.in => tags).pluck(:id, :title).each{|id, title_translations|
|
Tag.where(:id.in => tags).pluck(:id, :name).each{|id, title_translations|
|
||||||
tags_translations[id.to_s] = title_translations[I18n.locale]
|
tags_translations[id.to_s] = title_translations[I18n.locale]
|
||||||
}
|
}
|
||||||
cats_translations = {'all' => I18n.t(:all)}
|
cats_translations = {'all' => I18n.t(:all)}
|
||||||
|
|
Loading…
Reference in New Issue