From 2c63105741074b5d72925bdd876ef2a35af4bced Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Fri, 22 Nov 2013 15:58:09 +0100 Subject: [PATCH] some cukes seem to not finde html_escape, so we namespace it --- lib/open_project/costs/patches/i18n_patch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/open_project/costs/patches/i18n_patch.rb b/lib/open_project/costs/patches/i18n_patch.rb index 96e91b98be..262ae91052 100644 --- a/lib/open_project/costs/patches/i18n_patch.rb +++ b/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)