mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
Fix protocol description save in protocol repository [SCI-7094]
This commit is contained in:
parent
6334b481ef
commit
f39e86d40b
1 changed files with 1 additions and 7 deletions
|
@ -217,13 +217,7 @@ class ProtocolsController < ApplicationController
|
||||||
log_activity(:edit_description_in_protocol_repository, nil, protocol: @protocol.id)
|
log_activity(:edit_description_in_protocol_repository, nil, protocol: @protocol.id)
|
||||||
TinyMceAsset.update_images(@protocol, params[:tiny_mce_images], current_user)
|
TinyMceAsset.update_images(@protocol, params[:tiny_mce_images], current_user)
|
||||||
protocol_annotation_notification(old_description)
|
protocol_annotation_notification(old_description)
|
||||||
render json: {
|
render json: @protocol, serializer: ProtocolSerializer, user: current_user
|
||||||
html: custom_auto_link(
|
|
||||||
@protocol.tinymce_render(:description),
|
|
||||||
simple_format: false,
|
|
||||||
tags: %w(img),
|
|
||||||
team: current_team)
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
render json: @protocol.errors, status: :unprocessable_entity
|
render json: @protocol.errors, status: :unprocessable_entity
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue