Browse Source

修复

pull/347/head
yystopf 1 year ago
parent
commit
0643d24486
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      app/models/journal.rb

+ 9
- 9
app/models/journal.rb View File

@@ -117,12 +117,12 @@ class Journal < ApplicationRecord
old_value = "<b>#{Issue.find_by_id(detail.old_value)&.subject}</b>"
new_value = "<b>#{Issue.find_by_id(detail.value)&.subject}</b>"
if detail.old_value.nil? || detail.old_value.blank?
content += "关联了父需求<b><#{new_value}></b>"
content += "关联了父需求<#{new_value}>"
else
if detail.value.nil? || detail.value.blank?
content += "取消了关联的父需求<b><#{old_value}></b>"
content += "取消了关联的父需求<#{old_value}>"
else
content += "将关联的父需求由<b><#{old_value}></b>更改为<b><#{new_value}></b>"
content += "将关联的父需求由<#{old_value}>更改为<#{new_value}>"
end
end
return content
@@ -177,12 +177,12 @@ class Journal < ApplicationRecord
old_value = "<b>#{Issue.find_by_id(detail.old_value)&.subject}</b>"
new_value = "<b>#{Issue.find_by_id(detail.value)&.subject}</b>"
if detail.old_value.nil? || detail.old_value.blank?
content += "关联了父任务<b><#{new_value}></b>"
content += "关联了父任务<#{new_value}>"
else
if detail.value.nil? || detail.value.blank?
content += "取消了关联的父任务<b><#{old_value}></b>"
content += "取消了关联的父任务<#{old_value}>"
else
content += "将关联的父任务由<b><#{old_value}></b>更改为<b><#{new_value}></b>"
content += "将关联的父任务由<#{old_value}>更改为<#{new_value}>"
end
end
return content
@@ -237,12 +237,12 @@ class Journal < ApplicationRecord
old_value = "<b>#{Issue.find_by_id(detail.old_value)&.subject}</b>"
new_value = "<b>#{Issue.find_by_id(detail.value)&.subject}</b>"
if detail.old_value.nil? || detail.old_value.blank?
content += "关联了父缺陷<b><#{new_value}></b>"
content += "关联了父缺陷<#{new_value}>"
else
if detail.value.nil? || detail.value.blank?
content += "取消了关联的父缺陷<b><#{old_value}></b>"
content += "取消了关联的父缺陷<#{old_value}>"
else
content += "将关联的父缺陷由<b><#{old_value}></b>更改为<b><#{new_value}></b>"
content += "将关联的父缺陷由<#{old_value}>更改为<#{new_value}>"
end
end
return content


Loading…
Cancel
Save