fix
This commit is contained in:
parent
a8b0435c94
commit
69b5cae870
|
@ -300,20 +300,20 @@ class Journal < ApplicationRecord
|
||||||
new_value = "未设置" if new_value.blank?
|
new_value = "未设置" if new_value.blank?
|
||||||
content += "将状态由<b>#{old_value}</b>更改为<b>#{new_value}</b>"
|
content += "将状态由<b>#{old_value}</b>更改为<b>#{new_value}</b>"
|
||||||
end
|
end
|
||||||
case self.issue.pm_issue_type
|
case self.issue.pm_issue_type.to_i
|
||||||
when 'requirement'
|
when 1
|
||||||
content.gsub!('新增', '待评审')
|
content.gsub!('新增', '待评审')
|
||||||
content.gsub!('正在解决', '进行中')
|
content.gsub!('正在解决', '进行中')
|
||||||
content.gsub!('已解决', '已完成')
|
content.gsub!('已解决', '已完成')
|
||||||
content.gsub!('关闭', '已关闭')
|
content.gsub!('关闭', '已关闭')
|
||||||
content.gsub!('拒绝', '已拒绝')
|
content.gsub!('拒绝', '已拒绝')
|
||||||
when 'task'
|
when 2
|
||||||
content.gsub!('新增', '待处理')
|
content.gsub!('新增', '待处理')
|
||||||
content.gsub!('正在解决', '进行中')
|
content.gsub!('正在解决', '进行中')
|
||||||
content.gsub!('已解决', '已完成')
|
content.gsub!('已解决', '已完成')
|
||||||
content.gsub!('关闭', '已关闭')
|
content.gsub!('关闭', '已关闭')
|
||||||
content.gsub!('拒绝', '已拒绝')
|
content.gsub!('拒绝', '已拒绝')
|
||||||
when 'bug'
|
when 3
|
||||||
content.gsub!('新增', '待修复')
|
content.gsub!('新增', '待修复')
|
||||||
content.gsub!('正在解决', '修复中')
|
content.gsub!('正在解决', '修复中')
|
||||||
content.gsub!('已解决', '已修复')
|
content.gsub!('已解决', '已修复')
|
||||||
|
|
Loading…
Reference in New Issue