Commit 15ba22f3a6ab72dd9e5e601259a79c5a027654c8

Authored by AurelioAHeckert
1 parent 7c02bc20

ActionItem518: correct the product icons name on profile - 2

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2233 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -369,7 +369,7 @@ module ApplicationHelper @@ -369,7 +369,7 @@ module ApplicationHelper
369 icons = 369 icons =
370 profile.product_categories.map{ |c| c.size > 1 ? c[1] : nil }. 370 profile.product_categories.map{ |c| c.size > 1 ? c[1] : nil }.
371 compact.uniq.map{ |c| 371 compact.uniq.map{ |c|
372 - cat_name = c.gsub( /[-\s,.;'"]+/, '_' ) 372 + cat_name = c.gsub( /[-_\s,.;'"]+/, '_' )
373 cat_icon = "/images/icons-cat/#{cat_name}.png" 373 cat_icon = "/images/icons-cat/#{cat_name}.png"
374 if ! File.exists? RAILS_ROOT.to_s() + '/public/' + cat_icon 374 if ! File.exists? RAILS_ROOT.to_s() + '/public/' + cat_icon
375 cat_icon = '/images/icons-cat/undefined.png' 375 cat_icon = '/images/icons-cat/undefined.png'