Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Ability to save Variant's `dimensions_unit` and `weight_unit` (#12122)

Damian Legawiec279b2fdcdcad
diff --git a/core/lib/spree/permitted_attributes.rb b/core/lib/spree/permitted_attributes.rb
index 330fe762e0..e3702cb054 100644
--- a/core/lib/spree/permitted_attributes.rb
+++ b/core/lib/spree/permitted_attributes.rb
@@ -154,6 +154,7 @@ module Spree
:position, :track_inventory,
:product_id, :product, :option_values_attributes, :price, :compare_at_price,
:weight, :height, :width, :depth, :sku, :barcode, :cost_currency,
+ :weight_unit, :dimensions_unit,
{ options: [:name, :value], option_value_ids: [] }
]