diff --git a/app/models/journal.rb b/app/models/journal.rb index 2baef42e0..7b74b37a4 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -110,7 +110,7 @@ class Journal < ApplicationRecord content += "#{self.issue.subject}" 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 += "#{self.issue.subject}" @@ -358,9 +358,9 @@ class Journal < ApplicationRecord new_value = "未设置" if detail.value.blank? content += "将工作项类型由#{old_value}更改为#{new_value}" end - content.gsub!('1', '需求') - content.gsub!('2', '任务') - content.gsub!('3', '缺陷') + content.gsub!('1', '需求') + content.gsub!('2', '任务') + content.gsub!('3', '缺陷') return content when 'pm_sprint_id' old_value = detail.old_value