From 2f6355fcf2e41ec6199bec3e8b1aa12e409a5596 Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 3 Apr 2026 11:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=AE=BA=E5=9D=9B=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user_action.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user_action.rb b/app/models/user_action.rb index 47ced4ed7..84cb93bf1 100644 --- a/app/models/user_action.rb +++ b/app/models/user_action.rb @@ -71,7 +71,7 @@ class UserAction < ApplicationRecord else return "上传附件地址:#{attachment.title}" end - when "MemoPassed" then "#{memo&.subject}" + when "MemoPassed" then "#{memo&.subject}" else "--" end end @@ -122,7 +122,7 @@ class UserAction < ApplicationRecord end def memo - memo = if action_type == "MemoPassed" && data_bank.present? + memo = if action_type == "MemoPassed" Memo.find_by(id: self.action_id) else nil