Skip to content

Commit

Permalink
Fix admin timeline edit outgoing events
Browse files Browse the repository at this point in the history
When an outgoing message is edited the admin timeline breaks. This is
due to changes in how the event params are stored in #7173.

Fixes #7682
  • Loading branch information
gbp committed Jan 10, 2024
1 parent ead4d74 commit ecdbe72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/admin_general/_edit_outgoing.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% outgoing_message = OutgoingMessage.find(event.params[:outgoing_message_id].to_i) %>
<% outgoing_message = event.outgoing_message %>
had outgoing message edited by administrator <strong><%= event.params[:editor] %></strong>.
<% if outgoing_message %>
<%= event_params_description(event) %>
<% else %>
Missing outgoing message, internal error.
Missing outgoing message, internal error.
<% end %>

0 comments on commit ecdbe72

Please sign in to comment.