diff --git a/app/services/memos_service.rb b/app/services/memos_service.rb index 1ed7b1706..6ff7ef20c 100644 --- a/app/services/memos_service.rb +++ b/app/services/memos_service.rb @@ -402,7 +402,7 @@ class MemosService memo = Memo.find params[:id] return { status: 404 } if memo.hidden? && (!current_user || !(current_user.admin? || current_user.id == memo.author_id)) memo.update_attributes(params[:memo]) - memo.update_attachments(params[:attachments]) if params[:attachments].present? + memo.update_attachments(params[:attachments]) memo.forum_section_id = params[:children_forum_id].present? ? params[:children_forum_id] : params[:forum_id] if memo.save! if params[:attachment_id]