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.

Fix option value variant scope

Łukasz Adamczykb2876ac7fce5
diff --git a/core/app/models/spree/option_value_variant.rb b/core/app/models/spree/option_value_variant.rb
index b52420a9ae..52e9506368 100644
--- a/core/app/models/spree/option_value_variant.rb
+++ b/core/app/models/spree/option_value_variant.rb
@@ -7,7 +7,7 @@ module Spree
validates :option_value_id, uniqueness: { scope: :variant_id }
scope :for_option_types, lambda { |option_types|
- joins(:option_value).merge(Spree::OptionValue.where(option_types: option_types))
+ joins(:option_value).merge(Spree::OptionValue.where(option_type: option_types))
}
end
end