Fix RecordNotFound error when removing parent issue ID

Using find_by instead of find.
This commit is contained in:
Iku Iwasa
2020-10-25 17:16:30 +09:00
parent e7e6539500
commit 45531d783a

View File

@@ -249,7 +249,7 @@ class Messenger
end
when 'parent'
issue = Issue.find detail.value
issue = Issue.find_by id: detail.value
value = if issue.present?
escape = false
"<#{object_url issue}|#{markup_format issue}>"