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.

Fixed double spree scope in I18n

Damian Legawiecefba9f1a0281
diff --git a/core/lib/spree/i18n.rb b/core/lib/spree/i18n.rb
index 84e6202520..bd8e90f56d 100644
--- a/core/lib/spree/i18n.rb
+++ b/core/lib/spree/i18n.rb
@@ -14,7 +14,7 @@ module Spree
@virtual_path = virtual_path
options = args.extract_options!
- options[:scope] = [*options[:scope]].unshift(:spree)
+ options[:scope] = [*options[:scope]].unshift(:spree).uniq
args << options
super(*args)
end