From f39e86d40ba1718cfeb6ba0c07cc3930b4e6c9db Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 10 Aug 2022 13:46:50 +0200 Subject: [PATCH] Fix protocol description save in protocol repository [SCI-7094] --- app/controllers/protocols_controller.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/protocols_controller.rb b/app/controllers/protocols_controller.rb index 20349cc65..fdafac6dd 100644 --- a/app/controllers/protocols_controller.rb +++ b/app/controllers/protocols_controller.rb @@ -217,13 +217,7 @@ class ProtocolsController < ApplicationController log_activity(:edit_description_in_protocol_repository, nil, protocol: @protocol.id) TinyMceAsset.update_images(@protocol, params[:tiny_mce_images], current_user) protocol_annotation_notification(old_description) - render json: { - html: custom_auto_link( - @protocol.tinymce_render(:description), - simple_format: false, - tags: %w(img), - team: current_team) - } + render json: @protocol, serializer: ProtocolSerializer, user: current_user else render json: @protocol.errors, status: :unprocessable_entity end