Bug 13836: Does not separate symbol and value if symbol is not displayed.
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 16 Mar 2015 14:24:02 +0000 (15:24 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 19 Mar 2015 17:10:21 +0000 (14:10 -0300)
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 <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Number/Price.pm

index f29fe06..2d563f9 100644 (file)
@@ -106,7 +106,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;
 }