From 5216e61479838911520a2e4c07b641f7ad61c1a5 Mon Sep 17 00:00:00 2001 From: yystopf Date: Wed, 1 Mar 2023 16:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E4=B8=AD=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E7=9A=84=E8=89=B2=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/journal.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/journal.rb b/app/models/journal.rb index 57f53c125..a789f28cd 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -73,8 +73,8 @@ class Journal < ApplicationRecord content += "将附件由#{old_value}更改为#{new_value}" end when 'issue_tag' - old_value = IssueTag.where(id: detail.old_value.split(",")).pluck(:name, :color).map{|t| "#{t[0]}"}.join(" ") - new_value = IssueTag.where(id: detail.value.split(",")).pluck(:name, :color).map{|t| "#{t[0]}"}.join(" ") + old_value = IssueTag.where(id: detail.old_value.split(",")).pluck(:name).join("、") + new_value = IssueTag.where(id: detail.value.split(",")).pluck(:name).join("、") if old_value.nil? || old_value.blank? content += "添加了#{new_value}标记" else