Merge pull request #1776 from okriuchykhin/ok_SCI_3477

Fix protocol metadata editing in repository [SCI-3477]
This commit is contained in:
Alex Kriuchykhin 2019-05-17 09:42:13 +02:00 committed by GitHub
commit df59c54bd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

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

View file

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