From 4495b4f13d49bab6c4102da658293258cfae188e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 22 Feb 2006 00:40:04 +0000 Subject: [PATCH] =?utf8?q?Bug=20315317:=20DBI=20placeholders=20break=20App?= =?utf8?q?endComment's=20default=20timestamp=20-=20Patch=20by=20Fr=C3=A9d?= =?utf8?q?=C3=A9ric=20Buclin=20=20r=3Dmkanat=20a=3Djust?= =?utf8?q?dave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index cab54d7dab..f75c1ad0b2 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; @@ -717,7 +717,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. @@ -737,7 +737,7 @@ sub AppendComment { $dbh->do("UPDATE bugs SET delta_ts = ? WHERE bug_id = ?", undef, $timestamp, $bugid); } - + # This method is private and is not to be used outside of the Bug class. sub EmitDependList { my ($myfield, $targetfield, $bug_id) = (@_); -- 2.47.3