From d49370c44034ea5ca6eea09e8b120c8558a2606c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 11 Oct 2012 15:57:41 -0400 Subject: [PATCH] Bug 8907 - Last updated date does not appear on currency edit form Content-Type: text/plain; charset="utf-8" No value for $date was getting passed to the format_date function. This patch changes the way the timestamp is passed. --- admin/currency.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/currency.pl b/admin/currency.pl index aa878fd..ea22431 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) ); } -- 1.7.9.5