Commit c692f7b20601173748cbf491db38d72272a015a1

Authored by Antonio Terceiro
1 parent bac0ce8d

ActionItem862: no link for disabled enterprises (still)

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) : '#' 5 + target = product.enterprise.enabled? ? product.enterprise.generate_url(:controller => 'catalog', :action => 'show', :id => product) : 'javascript: void(0);'
6 link_to content_tag( 'span', product.name ), 6 link_to content_tag( 'span', product.name ),
7 target, 7 target,
8 opts 8 opts