diff --git a/app/controllers/api/shipments_controller.rb b/app/controllers/api/shipments_controller.rb index 4a228b28e9d..69f4b7d037a 100644 --- a/app/controllers/api/shipments_controller.rb +++ b/app/controllers/api/shipments_controller.rb @@ -30,7 +30,7 @@ def update @shipment.adjustment.open end - @shipment.update(params[:shipment]) + @shipment.update(shipment_params[:shipment]) if unlock == 'yes' @shipment.adjustment.close @@ -104,7 +104,8 @@ def get_or_create_shipment(stock_location_id) def shipment_params params.permit( - [:id, :order_id, :variant_id, :quantity, { shipment: :tracking}] + [:id, :order_id, :variant_id, :quantity, + { shipment: [:tracking, :selected_shipping_rate_id] }] ) end end