forked from Gitlink/forgeplus
fixed:操作日志为空的情况
This commit is contained in:
parent
a35537694c
commit
01ef87f5a3
|
@ -532,6 +532,7 @@ class Journal < ApplicationRecord
|
|||
def operate_content
|
||||
content = "#{operate_by_content}"
|
||||
detail = self.journal_details.take
|
||||
content = ""
|
||||
case detail.property
|
||||
when 'issue'
|
||||
content += "创建了<b>疑修</b>"
|
||||
|
@ -605,7 +606,7 @@ class Journal < ApplicationRecord
|
|||
content += "由<b>#{old_value}</b>更改为<b>#{new_value}</b>"
|
||||
end
|
||||
end
|
||||
|
||||
content = self.pm_operate_content if content == ""
|
||||
end
|
||||
|
||||
def journal_content
|
||||
|
|
Loading…
Reference in New Issue