Merge pull request #991 from Zanz2/missplaced_authors_sci1808

protocols io authors are now real authors, not user that added the protocol [SCI-1808]
This commit is contained in:
Zanz2 2018-02-15 16:53:39 +01:00 committed by GitHub
commit ad8f93b57f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@
<span class="glyphicon glyphicon-user">
</span>&nbsp;<%= t('protocols.import_export.import_modal.authors_label') %>
</label>
<%= f.text_field :authors, :value => pio_eval_title_len(sanitize_input(@json_object['full_name'])), class:
<%= f.text_field :authors, :value => pio_eval_title_len(sanitize_input(not_null(@json_object['authors']))), class:
"form-control" %>
</div>