Commit 181f90b1948d88f155ea0bb3dde082c56916fa1e
1 parent
e1db474b
Exists in
master
and in
79 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 | 126 | get( |
127 | 127 | :software_infos, |
128 | 128 | :query => "", |
129 | - :selected_categories => [Category.first.id] | |
129 | + :selected_categories_id => [Category.first.id] | |
130 | 130 | ) |
131 | 131 | |
132 | 132 | assert_includes assigns(:searches)[:software_infos][:results], software_one.community | ... | ... |
views/blocks/categories_software.html.erb
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | |
11 | 11 | <% Category.where(:name => "Software").first.children.each do |category| %> |
12 | 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 | 14 | <% end %> |
15 | 15 | <% end %> |
16 | 16 | </ul> | ... | ... |