diff options
author | lpsolit%gmail.com <> | 2006-02-22 01:33:59 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-02-22 01:33:59 +0100 |
commit | 58a9182f1da50a3543a0e781206bc7944c6c124e (patch) | |
tree | d4f5a79fc18da05c1a494ecc3f0d29072904bec0 /Bugzilla | |
parent | 684cbddd0152fea3f3096076975fe96ed7cb9085 (diff) | |
download | bugzilla-58a9182f1da50a3543a0e781206bc7944c6c124e.tar.gz bugzilla-58a9182f1da50a3543a0e781206bc7944c6c124e.tar.xz |
Bug 315317: DBI placeholders break AppendComment's default timestamp - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 290c4e7ca..6165fd2bb 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -23,7 +23,7 @@ # Bradley Baetz <bbaetz@acm.org> # Dave Miller <justdave@bugzilla.org> # Max Kanat-Alexander <mkanat@bugzilla.org> -# Frédéric Buclin <LpSolit@gmail.com> +# Frédéric Buclin <LpSolit@gmail.com> # Lance Larsh <lance.larsh@oracle.com> package Bugzilla::Bug; @@ -722,7 +722,7 @@ sub AppendComment { # Use the date/time we were given if possible (allowing calling code # to synchronize the comment's timestamp with those of other records). - $timestamp = "NOW()" unless $timestamp; + $timestamp ||= $dbh->selectrow_array('SELECT NOW()'); $comment =~ s/\r\n/\n/g; # Handle Windows-style line endings. $comment =~ s/\r/\n/g; # Handle Mac-style line endings. |