mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add missing attributes to variant override controller
This commit is contained in:
@@ -95,7 +95,11 @@ module Admin
|
||||
|
||||
def variant_overrides_params
|
||||
params.require(:variant_overrides).map do |variant_override|
|
||||
variant_override.permit(:id, :price, :count_on_hand, :sku, :on_demand, :variant_id, :hub_id)
|
||||
variant_override.permit(
|
||||
:id, :variant_id, :hub_id,
|
||||
:price, :count_on_hand, :sku, :on_demand,
|
||||
:default_stock, :resettable
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user