app/controllers/spree/admin/orders_controller.rb in spree_backend-3.3.0.rc1 vs app/controllers/spree/admin/orders_controller.rb in spree_backend-3.3.0.rc2
- old
+ new
@@ -54,16 +54,15 @@
end
def edit
can_not_transition_without_customer_info
- @order.refresh_shipment_rates(ShippingMethod::DISPLAY_ON_BACK_END)
+ @order.refresh_shipment_rates(ShippingMethod::DISPLAY_ON_BACK_END) unless @order.completed?
end
def cart
- unless @order.completed?
- @order.refresh_shipment_rates
- end
+ @order.refresh_shipment_rates(ShippingMethod::DISPLAY_ON_BACK_END) unless @order.completed?
+
if @order.shipments.shipped.count > 0
redirect_to edit_admin_order_url(@order)
end
end