From aa64ffb97ec389798272b070ee54e9e8c8fa7f10 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 --- 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 1719498..4305454 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 6441f95..94d3480 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -94,6 +94,14 @@ Last updated: [% currency.timestamp | $KohaDates %]
  • + + [% IF currency.p_sep_by_space %] + + [% ELSE %] + + [% END %] +
  • +
  • [% IF currency.active %] -- 2.10.2