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.

AAA I can use filters All, Active, Draft, Archived from Products sidebar in Admin Panel (#11608)

Konrad Gorazdbaa84995e9ea
diff --git a/core/app/models/spree/product.rb b/core/app/models/spree/product.rb
index 49b4333cbf..6e9ec8fc42 100644
--- a/core/app/models/spree/product.rb
+++ b/core/app/models/spree/product.rb
@@ -135,7 +135,7 @@ module Spree
alias options product_option_types
self.whitelisted_ransackable_associations = %w[taxons stores variants_including_master master variants]
- self.whitelisted_ransackable_attributes = %w[description name slug discontinue_on]
+ self.whitelisted_ransackable_attributes = %w[description name slug discontinue_on status]
self.whitelisted_ransackable_scopes = %w[not_discontinued search_by_name in_taxon price_between]
[