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: Pages can not be edit after theme was published (#12943)

Devin Zhang3e7562e7afe3
diff --git a/admin/app/views/spree/admin/pages/index.html.erb b/admin/app/views/spree/admin/pages/index.html.erb
index eff30b78de..d35dfe6041 100644
--- a/admin/app/views/spree/admin/pages/index.html.erb
+++ b/admin/app/views/spree/admin/pages/index.html.erb
@@ -19,7 +19,8 @@
</tr>
</thead>
<tbody>
- <%= render collection: @collection, partial: "spree/admin/pages/page", cached: spree_base_cache_scope %>
+ <% default_theme = current_store.default_theme %>
+ <%= render collection: @collection, partial: "spree/admin/pages/page", cached: ->(page) { [*spree_base_cache_scope.call(page), default_theme] } %>
</tbody>
</table>
<%= render "spree/admin/shared/index_table_options", collection: @collection %>