Sort experiments alphabetically in move task modal [SCI-6048]

This commit is contained in:
Martin Artnik 2021-09-14 15:11:47 +02:00
parent 41e41f790b
commit 534ab25e5d

View file

@ -6,7 +6,7 @@
<h4 class="modal-title" id="modal-move-module-label"><%=t "experiments.canvas.edit.modal_move_module.title" %></h4>
</div>
<div class="modal-body">
<% experiments = @experiment.project.experiments.active %>
<% experiments = @experiment.project.experiments.order(name: :asc).active %>
<% if experiments.count > 1 %>
<%= bootstrap_form_tag do |f| %>
<%= f.select :experiment_id, experiments