Merge pull request #5109 from rekonder/aj_SCI_8111

Fix loading of protocols.io to protocol templates [SCI-8111]
This commit is contained in:
aignatov-bio 2023-03-09 14:54:18 +01:00 committed by GitHub
commit 90ea8425ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@
<%= label_tag :default_public_user_role_id, t("protocols.new_protocol_modal.role_label") %>
<% default_role = UserRole.find_by(name: I18n.t('user_roles.predefined.viewer')).id %>
<%= hidden_field_tag :default_public_user_role_id, value: default_role %>
<%= select_tag :role_selector, options_for_select(user_roles_collection, default_role) %>
<%= select_tag :role_selector, options_for_select(user_roles_collection(@protocol), default_role) %>
</div>
</div>
</div>