]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 352699: bug creation time not available on bug creation
authorolav%bkor.dhs.org <>
Sat, 21 Oct 2006 07:15:09 +0000 (07:15 +0000)
committerolav%bkor.dhs.org <>
Sat, 21 Oct 2006 07:15:09 +0000 (07:15 +0000)
Patch by Olav Vitters <olav@bkor.dhs.org> r=LpSolit a=myk

Bugzilla/Bug.pm

index be4b2a0372042ac91a4a0ace7b03ca146d9de755..597d52f53c267eefa8430e0769746cd8e6282571 100755 (executable)
@@ -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 (?,?)');