Commit 58d646793e97b6426c07cdcab555fe3619dc0529
1 parent
8c1ecd96
Exists in
master
and in
29 other branches
ActionItem501: fixed link to product category in product listing
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2216 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/search/_product.rhtml
... | ... | @@ -16,6 +16,6 @@ product_item_pos += 1 |
16 | 16 | <% if product.enterprise %> |
17 | 17 | <li> <%= _('Suplier: %s') % link_to_homepage(product.enterprise.name, product.enterprise.identifier) %> </li> |
18 | 18 | <% end %> |
19 | - <li> <%= _('Category:') + ' ' + link_to_category(product.product_category, false) %> </li> | |
19 | + <li> <%= _('Category:') + ' ' + (product.product_category ? link_to(product.product_category.name, :controller => 'search', :action => 'assets', :asset => 'products', :product_category => product.product_category.id) : _('Uncategorized product')) %> </li> | |
20 | 20 | </ul> |
21 | 21 | </li> | ... | ... |