Bug 4078: Pass with_symbol to module
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 1 Feb 2018 17:31:48 +0000 (14:31 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Mar 2018 14:45:38 +0000 (11:45 -0300)
The template plugin did not pass the with_symbol flag to the module and
so was not taken into account

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Template/Plugin/Price.pm

index 44f7cd8..ec1fe71 100644 (file)
@@ -31,7 +31,7 @@ sub filter {
     $config->{on_editing} //= 0;
     return $config->{on_editing}
         ? Koha::Number::Price->new( $value )->format_for_editing
-        : Koha::Number::Price->new( $value )->format;
+        : Koha::Number::Price->new( $value )->format( $config );
 }
 
 1;