This commit is contained in:
邱博亞 2024-11-17 11:29:09 +08:00
parent 6e2a4ac3e9
commit 1af065b201
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class EventNewsModsController < ApplicationController
cats = cats.uniq
tags = tags.uniq
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]
}
cats_translations = {'all' => I18n.t(:all)}