Skip to content

Commit

Permalink
Fix #10971: Email about new bug sent before plugins are notified
Browse files Browse the repository at this point in the history
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 <hickseydr@optusnet.com.au>
  • Loading branch information
Frank Rodgers authored and davidhicks committed Sep 22, 2009
1 parent 4874bc4 commit 3cb1185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bug_report.php
Expand Up @@ -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();
Expand Down

0 comments on commit 3cb1185

Please sign in to comment.