Commit 7b535d9386cbab0172505f69d1a9cdbf83436180

Authored by Antonio Terceiro
1 parent 0f47e594

ActionItem862: link products of inactive enterprises to the inactive

enterprise page.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/display_helper.rb
@@ -2,7 +2,7 @@ module DisplayHelper @@ -2,7 +2,7 @@ module DisplayHelper
2 2
3 def link_to_product(product, opts={}) 3 def link_to_product(product, opts={})
4 return _('No product') unless product 4 return _('No product') unless product
5 - target = product.enterprise.enabled? ? product.enterprise.generate_url(:controller => 'catalog', :action => 'show', :id => product) : 'javascript: void(0);' 5 + target = product.enterprise.enabled? ? product.enterprise.generate_url(:controller => 'catalog', :action => 'show', :id => product) : product.enterprise.url
6 link_to content_tag( 'span', product.name ), 6 link_to content_tag( 'span', product.name ),
7 target, 7 target,
8 opts 8 opts