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.

:wrench: fix Option Value scope

Łukasz Adamczykc408586576ad
diff --git a/core/app/models/spree/option_value.rb b/core/app/models/spree/option_value.rb
index 49ce619468..ebb5a37775 100644
--- a/core/app/models/spree/option_value.rb
+++ b/core/app/models/spree/option_value.rb
@@ -13,7 +13,7 @@ module Spree
scope :filterable, lambda {
joins(:option_type, :variants).
- where(option_type: { filterable: true }).
+ where(OptionType.table_name => { filterable: true }).
distinct
}