version的title报错

dev_forge
sylor_huang@126.com 5 years ago
parent c29f5fec7d
commit 291aa386ca

@ -81,11 +81,11 @@ class Journal < ApplicationRecord
value = "清空了标签"
end
when "fixed_version_id"
t = Version.select(:id, :title)
old_value = t.find(de[2]).try(:title)
t = Version.select(:id, :name)
old_value = t.find(de[2]).try(:name)
type_name = de[3].present? ? t.find(de[3]) : ""
if type_name
value = t.find(de[3]).try(:title)
value = t.find(de[3]).try(:name)
else
value = "取消了版本库"
end

Loading…
Cancel
Save