mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Permit extra needed params in variant overrides controller
This commit is contained in:
@@ -95,7 +95,7 @@ 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_override.permit(:id, :price, :count_on_hand, :sku, :on_demand, :variant_id, :hub_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user