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.

[EN-462] Small change for product form stores field on admin panel

Robert Nowakowski497872de5d17
diff --git a/backend/app/controllers/spree/admin/stores_controller.rb b/backend/app/controllers/spree/admin/stores_controller.rb
index 3b1295c2f6..4976ee746c 100644
--- a/backend/app/controllers/spree/admin/stores_controller.rb
+++ b/backend/app/controllers/spree/admin/stores_controller.rb
@@ -38,7 +38,7 @@ module Spree
Spree::Store.joins(:translations).where("LOWER(#{Store::Translation.table_name}.name) LIKE LOWER(:query)",
query: "%#{params[:q]}%")
else
- Spree::Store.where('LOWER(name) LIKE LOWER(:query)', query: params[:q].to_s)
+ Spree::Store.where('LOWER(name) LIKE LOWER(:query)', query: "%#{params[:q]}%")
end
end