Merge pull request #4341 from aignatov-bio/ai-sci-7094-fix-protocol-description-save-in-repository

Fix protocol description save in protocol repository [SCI-7094]
This commit is contained in:
aignatov-bio 2022-08-10 13:57:18 +02:00 committed by GitHub
commit f1013c59fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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