X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=admin%2Fcurrency.pl;h=ea2243134f6542ccf947120cf3a6e84345d13d7b;hb=b5eab7c20bb8c2d07966bf1f68eaf0a7f953222e;hp=aa878fd5d459372f65efbd0649b1a17922f9270e;hpb=37328c709ecb1e8868c4dd8ce344e844647d8715;p=koha_fer diff --git a/admin/currency.pl b/admin/currency.pl index aa878fd5d4..ea2243134f 100755 --- a/admin/currency.pl +++ b/admin/currency.pl @@ -162,15 +162,16 @@ sub add_form { $template->param( add_form => 1 ); #---- if primkey exists, it's a modify action, so read values to modify... + my $date; if ($curr) { my $curr_rec = $dbh->selectrow_hashref( 'select * from currency where currency=?', {}, $curr ); for ( keys %{$curr_rec} ) { + if($_ eq "timestamp"){ $date = $curr_rec->{$_}; } $template->param( $_ => $curr_rec->{$_} ); } } - my $date = $template->param('timestamp'); if ($date) { $template->param( 'timestamp' => format_date($date) ); }