Bugzilla – Attachment 36932 Details for
Bug 13836
Koha/Number/Price.pm: format_for_editing fails 3 tests because of leading spaces in output
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13836: Does not separate symbol and value if symbol is not displayed.
Bug-13836-Does-not-separate-symbol-and-value-if-sy.patch (text/plain), 959 bytes, created by
Jonathan Druart
on 2015-03-16 14:25:27 UTC
(
hide
)
Description:
Bug 13836: Does not separate symbol and value if symbol is not displayed.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-03-16 14:25:27 UTC
Size:
959 bytes
patch
obsolete
>From c7064629bbb911dbe8f96aec0de8cdde068ea7fe Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 16 Mar 2015 15:24:02 +0100 >Subject: [PATCH] Bug 13836: Does not separate symbol and value if symbol is > not displayed. > >This patch force the separation between the symbol and the value to an >empty string if the symbol is not displayed. >--- > 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 f29fe06..2d563f9 100644 >--- a/Koha/Number/Price.pm >+++ b/Koha/Number/Price.pm >@@ -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; > } >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13836
:
36932
|
36934
|
36937