some cukes seem to not finde html_escape, so we namespace it

pull/6827/head
Philipp Tessenow 11 years ago
parent 25ef4b2d7c
commit 2c63105741
  1. 4
      lib/open_project/costs/patches/i18n_patch.rb

@ -12,8 +12,8 @@ module OpenProject
module InstanceMethods
def number_to_currency_with_l10n(number, options = {})
options_with_default = { unit: h(Setting.plugin_openproject_costs['costs_currency']),
format: h(Setting.plugin_openproject_costs['costs_currency_format']),
options_with_default = { unit: ERB::Util.h(Setting.plugin_openproject_costs['costs_currency']),
format: ERB::Util.h(Setting.plugin_openproject_costs['costs_currency_format']),
delimiter: l(:currency_delimiter),
separator: l(:currency_separator) }.merge(options)

Loading…
Cancel
Save