From 841d592d3577115296007e254c1444a52fa29289 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Feb 2018 14:31:25 -0300 Subject: [PATCH] Bug 4078: Add the checkbox to the UI Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- admin/currency.pl | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/admin/currency.pl b/admin/currency.pl index 171949850b..4305454802 100755 --- a/admin/currency.pl +++ b/admin/currency.pl @@ -57,6 +57,7 @@ if ( $op eq 'add_form' ) { my $isocode = $input->param('isocode'); my $rate = $input->param('rate'); my $active = $input->param('active'); + my $p_sep_by_space = $input->param('p_sep_by_space'); my $is_a_modif = $input->param('is_a_modif'); if ($is_a_modif) { @@ -65,6 +66,7 @@ if ( $op eq 'add_form' ) { $currency->isocode($isocode); $currency->rate($rate); $currency->active($active); + $currency->p_sep_by_space($p_sep_by_space); eval { $currency->store; }; if ($@) { push @messages, { type => 'error', code => 'error_on_update' }; @@ -78,6 +80,7 @@ if ( $op eq 'add_form' ) { isocode => $isocode, rate => $rate, active => $active, + p_sep_by_space => $p_sep_by_space, } ); eval { $currency->store; }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index 6441f9517e..94d3480f5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -93,6 +93,14 @@
  • Last updated: [% currency.timestamp | $KohaDates %]
  • +
  • + + [% IF currency.p_sep_by_space %] + + [% ELSE %] + + [% END %] +
  • [% IF currency.active %] -- 2.39.5