Commit 4d934a092515f6478b4d9adf491b9d13707449c1

Authored by AurelioAHeckert
1 parent cc8ec159

ActionItem518: correct the product icons name on profile

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2231 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 369 icons =
370 370 profile.product_categories.map{ |c| c.size > 1 ? c[1] : nil }.
371 371 compact.uniq.map{ |c|
372   - cat_name = c.gsub( /[-\s,.;'"]/, '_' )
  372 + cat_name = c.gsub( /[-\s,.;'"]+/, '_' )
373 373 cat_icon = "/images/icons-cat/#{cat_name}.png"
374 374 if ! File.exists? RAILS_ROOT.to_s() + '/public/' + cat_icon
375 375 cat_icon = '/images/icons-cat/undefined.png'
... ...