Bugzilla – Attachment 12777 Details for
Bug 8907
Last updated date does not appear on currency edit form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Signed off] Bug 8907 - Last updated date does not appear on currency edit form
0001-Bug-8907-Last-updated-date-does-not-appear-on-curren.patch (text/plain), 1.24 KB, created by
Melia Meggs
on 2012-10-11 22:54:22 UTC
(
hide
)
Description:
[Signed off] Bug 8907 - Last updated date does not appear on currency edit form
Filename:
MIME Type:
Creator:
Melia Meggs
Created:
2012-10-11 22:54:22 UTC
Size:
1.24 KB
patch
obsolete
>From 84870020eae903b78984404503f3207182119598 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 11 Oct 2012 15:57:41 -0400 >Subject: [PATCH] Bug 8907 - Last updated date does not appear on currency edit form > >No value for $date was getting passed to the format_date function. >This patch changes the way the timestamp is passed. > >Signed-off-by: Melia Meggs <melia@test.bywatersolutions.com> >--- > admin/currency.pl | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >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.2.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8907
:
12776
| 12777