From 58d646793e97b6426c07cdcab555fe3619dc0529 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Fri, 11 Jul 2008 23:03:45 +0000 Subject: [PATCH] ActionItem501: fixed link to product category in product listing --- app/views/search/_product.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/search/_product.rhtml b/app/views/search/_product.rhtml index a5fc1cd..1f3e1c8 100644 --- a/app/views/search/_product.rhtml +++ b/app/views/search/_product.rhtml @@ -16,6 +16,6 @@ product_item_pos += 1 <% if product.enterprise %>
  • <%= _('Suplier: %s') % link_to_homepage(product.enterprise.name, product.enterprise.identifier) %>
  • <% end %> -
  • <%= _('Category:') + ' ' + link_to_category(product.product_category, false) %>
  • +
  • <%= _('Category:') + ' ' + (product.product_category ? link_to(product.product_category.name, :controller => 'search', :action => 'assets', :asset => 'products', :product_category => product.product_category.id) : _('Uncategorized product')) %>
  • -- libgit2 0.21.2