From 8150f597e8f301f1a97e539f982ef24b87818265 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 1 Aug 2006 07:42:53 +0000 Subject: [PATCH] r1025: New bug notifications now work. Finally. --- newreport.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/newreport.php b/newreport.php index e473265..fe603ea 100755 --- a/newreport.php +++ b/newreport.php @@ -111,8 +111,10 @@ if ($_POST['do'] == 'insert') $notif->send_new_bug_notice($bug->values, $comment->values); $bug = new BugAPI($bugsys); // need to destroy because update will think the insert fields need to be changed, too + $bug->dorelations = array(); $bug->set('bugid', $comment->values['bugid']); $bug->set_condition(); + $bug->fetch(); $bug->set('dateline', $comment->values['dateline']); $bug->set('initialreport', $comment->insertid); $bug->set('lastposttime', $comment->values['dateline']); @@ -123,7 +125,7 @@ if ($_POST['do'] == 'insert') $bug->set('hiddenlastpostbyname', $bugsys->userinfo['displayname']); $bug->update(); - $notif->set_bug_data($bug->values); + $notif->set_bug_data($bug->objdata); $notif->finalize(); -- 2.22.5