forked from jasder/forgeplus
修改工单的评论修改内容后显示记录的问题
This commit is contained in:
parent
d368244d22
commit
cf27fe8839
|
@ -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)
|
details = self.journal_details.select(:property, :prop_key, :old_value, :value).pluck(:property, :prop_key, :old_value, :value)
|
||||||
if details.size > 0
|
if details.size > 0
|
||||||
details.each do |de|
|
details.each do |de|
|
||||||
|
unless de[1] == "description"
|
||||||
if de[0] == "attr"
|
if de[0] == "attr"
|
||||||
content = ""
|
content = ""
|
||||||
else
|
else
|
||||||
|
@ -143,6 +144,7 @@ class Journal < ApplicationRecord
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
send_details
|
send_details
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue