forked from Trustie/forgeplus
修复:操作记录显示错误
This commit is contained in:
parent
c56a25cdf4
commit
8889beb968
|
|
@ -110,7 +110,7 @@ class Journal < ApplicationRecord
|
|||
content += "<b>#{self.issue.subject}</b>"
|
||||
else
|
||||
prefix = '将'
|
||||
prefix += "计划" if self.issue.pm_issue_type == 1
|
||||
prefix += "需求" if self.issue.pm_issue_type == 1
|
||||
prefix += "任务" if self.issue.pm_issue_type == 2
|
||||
prefix += "缺陷" if self.issue.pm_issue_type == 3
|
||||
prefix += "<b>#{self.issue.subject}</b>"
|
||||
|
|
@ -358,9 +358,9 @@ class Journal < ApplicationRecord
|
|||
new_value = "未设置" if detail.value.blank?
|
||||
content += "将工作项类型由<b>#{old_value}</b>更改为<b>#{new_value}</b>"
|
||||
end
|
||||
content.gsub!('1', '需求')
|
||||
content.gsub!('2', '任务')
|
||||
content.gsub!('3', '缺陷')
|
||||
content.gsub!('<b>1</b>', '需求')
|
||||
content.gsub!('<b>2</b>', '任务')
|
||||
content.gsub!('<b>3</b>', '缺陷')
|
||||
return content
|
||||
when 'pm_sprint_id'
|
||||
old_value = detail.old_value
|
||||
|
|
|
|||
Loading…
Reference in New Issue