From 4fd2d5506f7d79e602d5b3255bbcd199dea4de14 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 22 Feb 2006 00:42:47 +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 3a9a64ddc0..543734e400 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 package Bugzilla::Bug; @@ -704,7 +704,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. @@ -724,7 +724,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.2