From 3cb1185bbc5c878f9460402cfc7fec90bdd86573 Mon Sep 17 00:00:00 2001 From: Frank Rodgers Date: Mon, 21 Sep 2009 15:27:01 -0400 Subject: [PATCH] Fix #10971: Email about new bug sent before plugins are notified Email is sent in bug_report.php before plugins are notified via EVENT_REPORT_BUG to post-process data. This results in missing or incorrect information in the email. Signed-off-by: David Hicks --- bug_report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bug_report.php b/bug_report.php index 3e301334ab..7a5ff28af2 100644 --- a/bug_report.php +++ b/bug_report.php @@ -166,13 +166,13 @@ } } - email_new_bug( $t_bug_id ); - helper_call_custom_function( 'issue_create_notify', array( $t_bug_id ) ); # Allow plugins to post-process bug data with the new bug ID event_signal( 'EVENT_REPORT_BUG', array( $t_bug_data, $t_bug_id ) ); + email_new_bug( $t_bug_id ); + form_security_purge( 'bug_report' ); html_page_top1();