Skip to content

Commit

Permalink
bug fix for loading product on slider form
Browse files Browse the repository at this point in the history
Bug fixed for spree-contrib#55
  • Loading branch information
rahul2103 authored Nov 6, 2021
1 parent 34c0161 commit 2a3ac8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/spree/admin/slides/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="col-md-12">
<%= f.field_container :product_id do %>
<%= label_tag :product_id, t(:product) %><br>
<%= hidden_field_tag 'slide[product_id]', f.object.product_id.to_s, class: "product_picker fullwidth" %>
<%= select_tag 'slide[product_id]', options_for_select(Spree::Product.all.map { |pp| [pp.name, pp.id] }, f.object.product_id), class: 'd-block fullwidth form-control select2', include_blank: true %>
<% end %>
</div>

Expand Down

0 comments on commit 2a3ac8b

Please sign in to comment.