Skip to content

Commit cc78a0d

Browse files
committed
order fallback slides by name
1 parent ff150e2 commit cc78a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/spree/admin/slide_locations/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<%= f.field_container :fallback_slide_id do %>
1010
<%= f.label :fallback_slide_id, 'Fallback slide' %><br>
1111
<div class="help-block">This slide will be shown only when no other slide can be shown.</div>
12-
<%= f.collection_select(:fallback_slide_id, Spree::Slide.all, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2', disabled: (cannot? :edit, Spree::SlideLocation) }) %>
12+
<%= f.collection_select(:fallback_slide_id, Spree::Slide.all.order(:name), :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2', disabled: (cannot? :edit, Spree::SlideLocation) }) %>
1313
<% end %>
1414
</div>
1515

0 commit comments

Comments
 (0)