Commit 9eda279e0931f41abd6dad0f1f9a7d138707148d

Authored by Rafael Martins
1 parent 2e18fad8

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 278 error_msg = _('Something went wrong. Please, try again')
279 279 select_tag('price_details[][production_cost_id]',
280 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 282 {:class => 'production-cost-selection',
283 283 :onchange => "productionCostTypeChange(this, '#{url}', '#{prompt_msg}', '#{error_msg}')"})
284 284 end
... ...