Commit 7b535d9386cbab0172505f69d1a9cdbf83436180
1 parent
0f47e594
Exists in
master
and in
29 other branches
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 | 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) : 'javascript: void(0);' | |
5 | + target = product.enterprise.enabled? ? product.enterprise.generate_url(:controller => 'catalog', :action => 'show', :id => product) : product.enterprise.url | |
6 | 6 | link_to content_tag( 'span', product.name ), |
7 | 7 | target, |
8 | 8 | opts | ... | ... |