Commit 9eda279e0931f41abd6dad0f1f9a7d138707148d
1 parent
2e18fad8
Exists in
master
and in
29 other branches
Removed a deprecation warning from ManageProductsHelper
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/manage_products_helper.rb
@@ -278,7 +278,7 @@ module ManageProductsHelper | @@ -278,7 +278,7 @@ module ManageProductsHelper | ||
278 | error_msg = _('Something went wrong. Please, try again') | 278 | error_msg = _('Something went wrong. Please, try again') |
279 | select_tag('price_details[][production_cost_id]', | 279 | select_tag('price_details[][production_cost_id]', |
280 | '<option value="" disabled="disabled">' + _('Select...') + '</option>' + | 280 | '<option value="" disabled="disabled">' + _('Select...') + '</option>' + |
281 | - options_for_select(product.available_production_costs.map {|item| [truncate(item.name, 10, '...'), item.id]} + [[_('Other cost'), '']], selected), | 281 | + options_for_select(product.available_production_costs.map {|item| [truncate(item.name, {:length => 10, :omission => '...'}), item.id]} + [[_('Other cost'), '']], selected), |
282 | {:class => 'production-cost-selection', | 282 | {:class => 'production-cost-selection', |
283 | :onchange => "productionCostTypeChange(this, '#{url}', '#{prompt_msg}', '#{error_msg}')"}) | 283 | :onchange => "productionCostTypeChange(this, '#{url}', '#{prompt_msg}', '#{error_msg}')"}) |
284 | end | 284 | end |