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.

Update core/app/models/spree/store.rb

François Koesslerfc7e05cc267c
diff --git a/core/app/models/spree/store.rb b/core/app/models/spree/store.rb
index 07e8863bfb..76d13541c3 100644
--- a/core/app/models/spree/store.rb
+++ b/core/app/models/spree/store.rb
@@ -64,7 +64,7 @@ module Spree
validates :digital_asset_authorized_clicks, numericality: { only_integer: true, greater_than: 0 }
validates :digital_asset_authorized_days, numericality: { only_integer: true, greater_than: 0 }
- validates :code, uniqueness: { case_sensitive: true, conditions: -> { with_deleted } }
+ validates :code, uniqueness: { case_sensitive: false, conditions: -> { with_deleted } }
validates :mail_from_address, email: { allow_blank: false }
# FIXME: we should remove this condition in v5