From 1af065b201a4287601a2497a4b7450785d07b13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 17 Nov 2024 11:29:09 +0800 Subject: [PATCH] Fix bug. --- app/controllers/event_news_mods_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/event_news_mods_controller.rb b/app/controllers/event_news_mods_controller.rb index db61a09..0b10d44 100644 --- a/app/controllers/event_news_mods_controller.rb +++ b/app/controllers/event_news_mods_controller.rb @@ -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)}