Merge pull request #7566 from luisramos0/erb

[Rails 6.0] Fix problem in erb template by explicitly setting format to js
This commit is contained in:
Andy Brett
2021-05-15 10:45:01 -07:00
committed by GitHub

View File

@@ -26,4 +26,4 @@
var shipments = [];
- @order.shipments.each do |shipment|
shipments.push(#{shipment.to_json(:root => false, :include => [:inventory_units, :stock_location]).html_safe});
= render :partial => 'spree/admin/shared/update_order_state', :handlers => [:erb]
= render :partial => 'spree/admin/shared/update_order_state', :handlers => [:erb], :formats => [:js]