aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-22 00:33:59 +0000
committerlpsolit%gmail.com <>2006-02-22 00:33:59 +0000
commit58a9182f1da50a3543a0e781206bc7944c6c124e (patch)
treed4f5a79fc18da05c1a494ecc3f0d29072904bec0 /Bugzilla/Bug.pm
parentCSS patch for bug 314055: Fix incorrect layout on footer bar - words overlap;... (diff)
downloadbugzilla-58a9182f1da50a3543a0e781206bc7944c6c124e.tar.gz
bugzilla-58a9182f1da50a3543a0e781206bc7944c6c124e.tar.bz2
bugzilla-58a9182f1da50a3543a0e781206bc7944c6c124e.zip
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/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm4
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.