Skip to content

Commit 343716f

Browse files
committed
Workaround to make possible working with friendly ids without changing the schema (Fixes #177)
1 parent e827667 commit 343716f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kaffy_web/templates/resource/_table.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</td>
1515
<%= for {field, index} <- Enum.with_index(@fields) do %>
1616
<%= if index == 0 do %>
17-
<td><%= link Kaffy.ResourceSchema.kaffy_field_value(@conn, entry, field), to: Kaffy.Utils.router().kaffy_resource_path(@conn, :show, @context, @resource, entry) %></td>
17+
<td><%= link Kaffy.ResourceSchema.kaffy_field_value(@conn, entry, field), to: Kaffy.Utils.router().kaffy_resource_path(@conn, :show, @context, @resource, entry.id) %></td>
1818
<% else %>
1919
<td><%= Kaffy.ResourceSchema.kaffy_field_value(@conn, entry, field) %></td>
2020
<% end %>

0 commit comments

Comments
 (0)