Fix bug with assigned_to field twice and fallback values, if objects do not exist anymore

This commit is contained in:
Alexander Meindl
2020-01-07 13:22:53 +01:00
parent b2e7cca639
commit 164bc700e1
2 changed files with 27 additions and 28 deletions

View File

@@ -88,11 +88,7 @@ module RedmineMessenger
value: Messenger.markup_format(priority.to_s),
short: true }
end
if assigned_to.present?
fields << { title: I18n.t(:field_assigned_to),
value: Messenger.markup_format(assigned_to.to_s),
short: true }
end
attachment[:fields] = fields if fields.any?
Messenger.speak(l(:label_messenger_issue_updated,