修改工单的评论修改内容后显示记录的问题

This commit is contained in:
sylor_huang@126.com 2020-03-18 15:32:54 +08:00
parent d368244d22
commit cf27fe8839
1 changed files with 120 additions and 118 deletions

View File

@ -19,6 +19,7 @@ class Journal < ApplicationRecord
details = self.journal_details.select(:property, :prop_key, :old_value, :value).pluck(:property, :prop_key, :old_value, :value)
if details.size > 0
details.each do |de|
unless de[1] == "description"
if de[0] == "attr"
content = ""
else
@ -143,6 +144,7 @@ class Journal < ApplicationRecord
end
end
end
end
send_details
end