Commit 16848cc86978c33a41cd23413711ef87f41bb4a0
1 parent
00f42579
Exists in
master
and in
29 other branches
Fix another wrong truncate call
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/manage_products_helper.rb
... | ... | @@ -55,7 +55,7 @@ module ManageProductsHelper |
55 | 55 | def options_for_select_categories(categories, selected = nil) |
56 | 56 | categories.sort_by{|cat| cat.name.transliterate}.map do |category| |
57 | 57 | selected_attribute = selected.nil? ? '' : (category == selected ? "selected='selected'" : '') |
58 | - "<option value='#{category.id}' title='#{category.name}' #{selected_attribute}>#{truncate(category.name, 33) + (category.leaf? ? '': ' »')}</option>" | |
58 | + "<option value='#{category.id}' title='#{category.name}' #{selected_attribute}>#{truncate(category.name, :length => 33) + (category.leaf? ? '': ' »')}</option>" | |
59 | 59 | end.join("\n") |
60 | 60 | end |
61 | 61 | ... | ... |