From bc92c93a282180033d2c74f6d851d56de8e4c47b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 16 Mar 2015 15:24:02 +0100 Subject: [PATCH] Bug 13836: Does not separate symbol and value if symbol is not displayed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch force the separation between the symbol and the value to an empty string if the symbol is not displayed. Tested with locale de_CH.UTF-8, prove t/Prices.t is now successful. Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 15468615f9c5c427cc819bf833c2df58d13c5080) Signed-off-by: Chris Cormack --- Koha/Number/Price.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Number/Price.pm b/Koha/Number/Price.pm index f0da1e051f..376fd0faf5 100644 --- a/Koha/Number/Price.pm +++ b/Koha/Number/Price.pm @@ -97,7 +97,7 @@ sub _format_params { } $format_params{p_cs_precedes} = $p_cs_precedes if defined $p_cs_precedes; - $format_params{p_sep_by_space} = $p_sep_by_space if defined $p_sep_by_space; + $format_params{p_sep_by_space} = ( $int_curr_symbol and defined $p_sep_by_space ) ? $p_sep_by_space : 0; return \%format_params; } -- 2.39.5