Browse Source

Fix linking of `document`

pull/132/head
alexdbondoc17 4 years ago
parent
commit
9f06b3c0cd
  1. 2
      app/components/doctrine_index_table_component/doctrine_index_table_component.html.erb

2
app/components/doctrine_index_table_component/doctrine_index_table_component.html.erb

@ -7,7 +7,7 @@
<tbody>
<% search_results.each do |search_result| %>
<tr href="<%= document_path(search_result.id, is_index_table: true, subject_ids: opts[:subject_ids]) %> " class="clickable-link">
<tr href="<%= document_path(search_result.document.id, is_index_table: true, subject_ids: opts[:subject_ids]) %> " class="clickable-link">
<td> <%= document_reference_number(search_result) %> </td>
<td> <%= document_title(search_result) %> </td>
<td> <%= date_or_year(search_result) %> </td>

Loading…
Cancel
Save