Skip to content
Snippets Groups Projects
Commit 61d3ecc8 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix custom emoji copy not copying file (#5298)

parent 4bb3e4ee
No related branches found
Tags v2.0.0rc1
No related merge requests found
......@@ -28,8 +28,7 @@ module Admin
end
def copy
emoji = @custom_emoji.dup
emoji.domain = nil
emoji = CustomEmoji.new(domain: nil, shortcode: @custom_emoji.shortcode, image: @custom_emoji.image)
if emoji.save
redirect_to admin_custom_emojis_path, notice: I18n.t('admin.custom_emojis.copied_msg')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment