mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Fix protocol metadata editing in repository [SCI-3477]
This commit is contained in:
parent
039b2f3754
commit
488fc99dae
2 changed files with 4 additions and 4 deletions
|
@ -179,7 +179,7 @@ class ProtocolsController < ApplicationController
|
|||
partial: 'protocols/header/authors_label.html.erb'
|
||||
),
|
||||
description_label: render_to_string(
|
||||
partial: 'protocols/header/description_label.html.erb'
|
||||
partial: 'protocols/header/description_label.html.erb', locals: { edit_mode: true }
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<% if can_manage_protocol_in_repository?(@protocol) && edit_mode %>
|
||||
<%= render partial: "my_modules/protocols/protocol_description_form", locals:
|
||||
<%= render partial: "my_modules/protocols/protocol_description_form.html.erb", locals:
|
||||
{
|
||||
protocol: @protocol,
|
||||
update_url: description_protocol_path(@protocol, format: :json)
|
||||
|
|
Loading…
Reference in a new issue