Merge pull request #3545 from artoscinote/ma_SCI_6048

Sort experiments alphabetically in move task modal [SCI-6048]
This commit is contained in:
artoscinote 2021-09-16 09:44:20 +02:00 committed by GitHub
commit 03bf81a6ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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