View Issue Details

IDProjectCategoryView StatusLast Update
0011066mantisbtbugtrackerpublic2019-08-23 04:34
Reporterfrodgers Assigned Tojreese  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version1.2.0rc2 
Fixed in Version1.2.0 
Summary0011066: Add bug_id parameter to EVENT_BUGNOTE_DATA
Description

I would like to have the bug_id passed via EVENT_BUGNOTE_DATA in core/bugnote_api.php.

Additional Information

I have implemented this on my Mantis installation and thought it would be useful to the community. I've attached my patch.

TagsNo tags attached.
Attached Files
bugnote_api.patch (863 bytes)   
From ba4f592c4194892b58e4b5da23570e99f38b72a0 Mon Sep 17 00:00:00 2001
From: Frank Rodgers <frodgers@redcom.com>
Date: Thu, 22 Oct 2009 10:43:02 -0400
Subject: [PATCH] Added bug_id to EVENT_BUGNOTE_DATA. Needed to store bugnote text in an Array indexed by bug_id


diff --git a/core/bugnote_api.php b/core/bugnote_api.php
index f60a494..0c426e8 100644
--- a/core/bugnote_api.php
+++ b/core/bugnote_api.php
@@ -148,7 +148,7 @@ function bugnote_add( $p_bug_id, $p_bugnote_text, $p_time_tracking = '0:00', $p_
 	$t_bugnote_text = $p_bugnote_text;
 
 	# Event integration
-	$t_bugnote_text = event_signal( 'EVENT_BUGNOTE_DATA', $t_bugnote_text );
+	$t_bugnote_text = event_signal( 'EVENT_BUGNOTE_DATA', $t_bugnote_text, $c_bug_id );
 
 	# insert bugnote text
 	$query = 'INSERT INTO ' . $t_bugnote_text_table . ' ( note ) VALUES ( ' . db_param() . ' )';
-- 
1.6.0.4

bugnote_api.patch (863 bytes)   

Relationships

related to 0010906 closeddhx Add new event to allow plugins to preprocess bugnote content 
related to 0025914 closeddregad EVENT_BUGNOTE_DATA event not documented in developer manual 

Activities

jreese

jreese

2009-10-22 13:28

reporter   ~0023282

Patches committed to 1.2.x and master branches.

Related Changesets

MantisBT: master-1.2.x a4392b83

2009-10-22 10:43

frodgers

Committer: jreese


Details Diff
Added bug_id to EVENT_BUGNOTE_DATA. Needed to store bugnote text in an Array indexed by bug_id

Signed-off-by: John Reese <jreese@leetcode.net>
Affected Issues
0011066
mod - core/bugnote_api.php Diff File

MantisBT: master b3753e8f

2009-10-22 10:43

frodgers

Committer: jreese


Details Diff
Added bug_id to EVENT_BUGNOTE_DATA. Needed to store bugnote text in an Array indexed by bug_id

Signed-off-by: John Reese <jreese@leetcode.net>
Affected Issues
0011066
mod - core/bugnote_api.php Diff File