From 4174d2b296d05e402bf1598a2f28278c68e3b2e9 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 20 Jul 2019 18:52:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/tiding.rb | 2 +- public/update.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/tiding.rb b/app/models/tiding.rb index 177946d8..0cc335a5 100644 --- a/app/models/tiding.rb +++ b/app/models/tiding.rb @@ -254,7 +254,7 @@ class Tiding < ActiveRecord::Base elsif self.tiding_type == "Comment" container.present? ? ("评论了你" + (container.parent.present? ? "的回复:" : "发布的项目issue:") + message_content(container.notes)) : "" else - "更新了Issue:#{container.issue.subject}" + "更新了Issue:#{container.try(:issue).try(:subject)}" end when 'Issue' "指派了Issue给你:" + container.subject diff --git a/public/update.html b/public/update.html index e609e7aa..cdb8533b 100644 --- a/public/update.html +++ b/public/update.html @@ -58,6 +58,6 @@ If you continue to experience problems please contact your Trustie administrator

平台拟于2019年4月27日17:00--18:30进行全面升级,带来不便,敬请谅解!

- + user_tidings.html.erb