Fix problem in erb template by explicitly setting format to js while calling it

This commit is contained in:
Luis Ramos
2021-05-06 22:50:38 +01:00
parent 415d86bff0
commit de000228cf

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]