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 store to stores.

Matthew Kennedy0ba8396129f5
diff --git a/backend/app/assets/javascripts/spree/backend/spree-select2.js b/backend/app/assets/javascripts/spree/backend/spree-select2.js
index 9670c3a69f..b77e1f709c 100644
--- a/backend/app/assets/javascripts/spree/backend/spree-select2.js
+++ b/backend/app/assets/javascripts/spree/backend/spree-select2.js
@@ -3,10 +3,6 @@ document.addEventListener('DOMContentLoaded', function() {
// Remember to add a place holder in the HTML as needed.
$('select.select2').select2({})
- $('select.select2-multiple').select2({
- multiple: true
- })
-
// Initiate a Select2 with the option to clear, on any select element with the class .select2-clear
// Set: include_blank: true in the ERB.
// A placeholder is auto-added here as it is required to clear the Select2.
diff --git a/backend/app/views/spree/admin/payment_methods/_form.html.erb b/backend/app/views/spree/admin/payment_methods/_form.html.erb
index 79404e5aaa..a5ff976679 100644
--- a/backend/app/views/spree/admin/payment_methods/_form.html.erb
+++ b/backend/app/views/spree/admin/payment_methods/_form.html.erb
@@ -25,7 +25,7 @@
<% end %>
<div data-hook="store" class="form-group">
- <%= label_tag :payment_method_store, Spree.t(:store) %>
+ <%= label_tag :payment_method_store, Spree.t(:stores) %>
<%= collection_select(:payment_method, :store_ids, @stores, :id, :unique_name, {}, { multiple: true, id: 'store_id', class: 'select2' }) %>
<small class="form-text text-muted"><%= Spree.t('payment_method_form.stores_help') %></small>
</div>