mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Add missing permitted attributes to subscriptions controller
This commit is contained in:
@@ -160,11 +160,12 @@ module Admin
|
||||
return params[:subscription] if params[:subscription].empty?
|
||||
|
||||
params.require(:subscription).permit(
|
||||
:shop_id, :schedule_id, :customer_id,
|
||||
:id, :shop_id, :schedule_id, :customer_id,
|
||||
:payment_method_id, :shipping_method_id,
|
||||
:begins_at, :ends_at,
|
||||
:canceled_at, :paused_at,
|
||||
:subscription_line_items_attributes => [:id, :quantity, :variant_id],
|
||||
:shipping_fee_estimate, :payment_fee_estimate,
|
||||
:subscription_line_items_attributes => [:id, :quantity, :variant_id, :price_estimate, :_destroy],
|
||||
:bill_address_attributes => permitted_address_attributes,
|
||||
:ship_address_attributes => permitted_address_attributes
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user