Merge pull request #122 from ZmagoD/zd_SCI_402

fixes searching tables bug [fixes SCI-402]
This commit is contained in:
Zmago Devetak 2016-08-31 11:07:19 +02:00 committed by GitHub
commit 985980183f
2 changed files with 6 additions and 3 deletions

View file

@ -20,7 +20,10 @@
<span>
<%=t "search.index.module" %>
<%= render partial: "search/results/partials/my_module_text.html.erb",
locals: { my_module: table.step.protocol.my_module, link_to_page: :results } %>
locals: {
my_module: table.step.protocol.my_module,
link_to_page: :protocols
} %>
</span>
<br>
<span>
@ -57,7 +60,7 @@
<span>
<%=t "search.index.module" %>
<%= render partial: "search/results/partials/my_module_text.html.erb",
locals: { my_module: table.result.my_module } %>
locals: { my_module: table.result.my_module, link_to_page: :results } %>
</span>
<br>
<span>

View file

@ -27,7 +27,7 @@
<%= text %>
</a>
<% when :results %>
<a href="<%= results_my_module_path(my_module.experiment.project) %>">
<a href="<%= results_my_module_path(my_module) %>">
<%= text %>
</a>
<% else %>