From 58a9182f1da50a3543a0e781206bc7944c6c124e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 22 Feb 2006 00:33:59 +0000 Subject: Bug 315317: DBI placeholders break AppendComment's default timestamp - Patch by Frédéric Buclin r=mkanat a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Bug.pm') 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 # Dave Miller # Max Kanat-Alexander -# Frédéric Buclin +# Frédéric Buclin # Lance Larsh 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. -- cgit v1.2.3-24-g4f1b