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.

Fixed sortable for `render_table`

Damian Legawiec0d80452031ba
diff --git a/admin/app/views/spree/admin/tables/_table_row.html.erb b/admin/app/views/spree/admin/tables/_table_row.html.erb
index 5641144670..2be032375d 100644
--- a/admin/app/views/spree/admin/tables/_table_row.html.erb
+++ b/admin/app/views/spree/admin/tables/_table_row.html.erb
@@ -7,7 +7,7 @@
row_link_url = edit_object_url(record) rescue nil
end
%>
-<tr id="<%= dom_id record %>" class="group"<% if sortable %> data-sortable-update-url="<%= edit_object_url(record) %>"<% end %>>
+<tr id="<%= dom_id record %>" class="group"<% if sortable %> data-sortable-update-url="<%= object_url(record) %>"<% end %>>
<% if sortable %>
<td class="w-5 move-handle text-center">
<%= icon('grip-vertical', class: 'rounded-md hover:bg-gray-100 p-2 cursor-grab') %>