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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
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.rbindex 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 Spreevalidates :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))}endend