From c9f72537239350f5d05309db60ff96e59280a471 Mon Sep 17 00:00:00 2001 From: "olav%bkor.dhs.org" <> Date: Sat, 21 Oct 2006 07:15:09 +0000 Subject: Bug 352699: bug creation time not available on bug creation Patch by Olav Vitters r=LpSolit a=myk --- Bugzilla/Bug.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index be4b2a037..597d52f53 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -283,6 +283,8 @@ sub create { $dbh->do('UPDATE bugs SET creation_ts = ? WHERE bug_id = ?', undef, $timestamp, $bug->bug_id); + # Update the bug instance as well + $bug->{creation_ts} = $timestamp; # Add the CCs my $sth_cc = $dbh->prepare('INSERT INTO cc (bug_id, who) VALUES (?,?)'); -- cgit v1.2.3-24-g4f1b