View Issue Details

IDProjectCategoryView StatusLast Update
0010971mantisbtbugtrackerpublic2009-10-07 14:19
Reportercmfitch1 Assigned Todhx  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version1.2.0rc2Fixed in Version1.2.0rc2 
Summary0010971: Email about new bug sent before plugins are notified
Description

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.

Tagspatch
Attached Files
issue_10971.patch (771 bytes)   
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

issue_10971.patch (771 bytes)   

Activities

dhx

dhx

2009-09-22 09:41

reporter   ~0023013

Committed, thanks!

Related Changesets

MantisBT: master-1.2.x 8977d9c3

2009-09-21 15:27

frodgers

Committer: dhx


Details Diff
Fix 0010971: 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 <hickseydr@optusnet.com.au>
Affected Issues
0010971
mod - bug_report.php Diff File

MantisBT: master 3cb1185b

2009-09-21 15:27

frodgers

Committer: dhx


Details Diff
Fix 0010971: 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 <hickseydr@optusnet.com.au>
Affected Issues
0010971
mod - bug_report.php Diff File