Commit c692f7b20601173748cbf491db38d72272a015a1
1 parent
bac0ce8d
Exists in
staging
and in
42 other branches
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 | 2 | |
3 | 3 | def link_to_product(product, opts={}) |
4 | 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 | 6 | link_to content_tag( 'span', product.name ), |
7 | 7 | target, |
8 | 8 | opts | ... | ... |