From 17a473789bd09feadc4d5fb9c728f7af6913179d Mon Sep 17 00:00:00 2001
From: Frank Rodgers <frodgers@redcom.com>
Date: Mon, 21 Sep 2009 15:27:01 -0400
Subject: [PATCH] moved the call to email new bug to allow the plugin event to
 be processed prior to sending email.


diff --git a/bug_report.php b/bug_report.php
index 3e30133..7a5ff28 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();
-- 
1.6.0.4

