mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
Add guard clause in checkout_controller for empty params[:order]
This commit is contained in:
@@ -239,6 +239,8 @@ class CheckoutController < Spree::StoreController
|
||||
end
|
||||
|
||||
def order_params(params)
|
||||
return params[:order] if params[:order].empty?
|
||||
|
||||
params.require(:order).permit(
|
||||
:email, :special_instructions,
|
||||
payments_attributes:
|
||||
|
||||
Reference in New Issue
Block a user