From b36676ddb5ae337898f5fbd61474309788317477 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 6 Jan 2009 17:08:53 -0300 Subject: [PATCH] ActionItem862: fixing product category for disabled enterprises --- app/helpers/catalog_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/catalog_helper.rb b/app/helpers/catalog_helper.rb index f2329fd..9003b1f 100644 --- a/app/helpers/catalog_helper.rb +++ b/app/helpers/catalog_helper.rb @@ -11,7 +11,7 @@ include DisplayHelper content_tag('h3', link_to_product(product)) + content_tag('ul', (product.price ? content_tag('li', _('Price: %s') % ( "%.2f" % product.price), :class => 'product_price') : '') + - content_tag('li', profile.enabled? ? link_to_category(product.product_category) : product.product_category, :class => 'product_category') + content_tag('li', profile.enabled? ? link_to_category(product.product_category) : product.product_category.full_name(' → ') , :class => 'product_category') ) + (product.description ? content_tag('div', txt2html(product.description), :class => 'description') : tag('br', :style => 'clear:both')), :class => 'product') -- libgit2 0.21.2