Browse Source

Fix admin actions log crash when displaying updates of deleted announcements (#13489)

Fixes #13487
master
ThibG 4 years ago
committed by GitHub
parent
commit
89077fb657
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/helpers/admin/action_logs_helper.rb

+ 1
- 1
app/helpers/admin/action_logs_helper.rb View File

@ -47,7 +47,7 @@ module Admin::ActionLogsHelper
I18n.t('admin.action_logs.deleted_status')
end
when 'Announcement'
truncate(attributes['text'])
truncate(attributes['text'].is_a?(Array) ? attributes['text'].last : attributes['text'])
end
end
end

Loading…
Cancel
Save