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.

fix no products partial on product translations page (#14169)

Kacper Mękarski60f05912850f
diff --git a/spree/admin/app/views/spree/admin/product_translations/index.html.erb b/spree/admin/app/views/spree/admin/product_translations/index.html.erb
index f4e801c989..3263b5bc0d 100644
--- a/spree/admin/app/views/spree/admin/product_translations/index.html.erb
+++ b/spree/admin/app/views/spree/admin/product_translations/index.html.erb
@@ -101,7 +101,7 @@
<%= render 'spree/admin/shared/index_table_options', collection: @products %>
</div>
<% else %>
- <%= render 'spree/admin/shared/no_resource_found', new_object_url: nil %>
+ <%= render 'spree/admin/shared/no_resource_found', new_object_url: nil, model_class: Spree::Product %>
<% end %>
</div>
</div>