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.

SD-1349 Use currencies supported by all stores for options of promotion's select

Tomek Urbanc668e5020d86
diff --git a/backend/app/helpers/spree/admin/base_helper.rb b/backend/app/helpers/spree/admin/base_helper.rb
index 7ea2ebdea4..e242078a4e 100644
--- a/backend/app/helpers/spree/admin/base_helper.rb
+++ b/backend/app/helpers/spree/admin/base_helper.rb
@@ -59,10 +59,8 @@ module Spree
end
def preference_field_tag(name, value, options)
- # binding.pry
- pp 'debtu', name, options
if options[:key] == :currency
- return select_tag(name, options_from_collection_for_select(supported_currencies, :iso_code, :iso_code, value), class: 'select2')
+ return select_tag(name, options_from_collection_for_select(supported_currencies_for_all_stores, :iso_code, :iso_code, value), class: 'select2')
end
case options[:type]