app/views/spree/admin/stock_items/index.html.erb in solidus_backend-4.1.5 vs app/views/spree/admin/stock_items/index.html.erb in solidus_backend-4.2.0
- old
+ new
@@ -17,10 +17,13 @@
<% form_path = @product ? admin_product_stock_path(product: @product) : admin_stock_items_path %>
<%= render partial: 'spree/admin/shared/variant_search', locals: { form_path: form_path, stock_locations: @stock_locations } %>
<% end %>
<% if @variants.any? %>
- <%= render partial: 'stock_management', locals: { variants: @variants } %>
+ <%= render partial: 'stock_management', locals: {
+ variants: @variants,
+ stock_locations: @stock_locations,
+ } %>
<% else %>
<div class="fullwidth no-objects-found">
<%= t('spree.no_variants_found_try_again') %>
</div>
<% end %>