Commit 181f90b1948d88f155ea0bb3dde082c56916fa1e
1 parent
e1db474b
Exists in
master
and in
5 other branches
Fix selected_categories to selected_categories_id to search software
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
test/functional/search_controller_test.rb
@@ -126,7 +126,7 @@ class SearchControllerTest < ActionController::TestCase | @@ -126,7 +126,7 @@ class SearchControllerTest < ActionController::TestCase | ||
126 | get( | 126 | get( |
127 | :software_infos, | 127 | :software_infos, |
128 | :query => "", | 128 | :query => "", |
129 | - :selected_categories => [Category.first.id] | 129 | + :selected_categories_id => [Category.first.id] |
130 | ) | 130 | ) |
131 | 131 | ||
132 | assert_includes assigns(:searches)[:software_infos][:results], software_one.community | 132 | assert_includes assigns(:searches)[:software_infos][:results], software_one.community |
views/blocks/categories_software.html.erb
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | 10 | ||
11 | <% Category.where(:name => "Software").first.children.each do |category| %> | 11 | <% Category.where(:name => "Software").first.children.each do |category| %> |
12 | <% unless category.software_infos.count < 1 %> | 12 | <% unless category.software_infos.count < 1 %> |
13 | - <li><%= link_to _("#{category.name}") + " (#{category.software_infos.count})", {:controller => :search, :action => :software_infos, :selected_categories => [category.id]} %></li> | 13 | + <li><%= link_to _("#{category.name}") + " (#{category.software_infos.count})", {:controller => :search, :action => :software_infos, :selected_categories_id => [category.id]} %></li> |
14 | <% end %> | 14 | <% end %> |
15 | <% end %> | 15 | <% end %> |
16 | </ul> | 16 | </ul> |