Fix loading of protocols.io to protocol templates [SCI-8111]

This commit is contained in:
Andrej 2023-03-08 19:10:22 +01:00
parent 0a3efe3e24
commit b5c3491a38

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>