From eb394ce2096eb63739c4321c1038e979f052e546 Mon Sep 17 00:00:00 2001 From: zmagod Date: Wed, 31 Aug 2016 11:01:10 +0200 Subject: [PATCH] fixes searching tables bug [fixes SCI-402] --- app/views/search/results/_tables.html.erb | 7 +++++-- app/views/search/results/partials/_my_module_text.html.erb | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/search/results/_tables.html.erb b/app/views/search/results/_tables.html.erb index f92206720..1cda0a214 100644 --- a/app/views/search/results/_tables.html.erb +++ b/app/views/search/results/_tables.html.erb @@ -20,7 +20,10 @@ <%=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 + } %>
@@ -57,7 +60,7 @@ <%=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 } %>
diff --git a/app/views/search/results/partials/_my_module_text.html.erb b/app/views/search/results/partials/_my_module_text.html.erb index 92ea8ce05..335eabe1f 100644 --- a/app/views/search/results/partials/_my_module_text.html.erb +++ b/app/views/search/results/partials/_my_module_text.html.erb @@ -27,7 +27,7 @@ <%= text %> <% when :results %> - + <%= text %> <% else %>