View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003353 | mantisbt | bugtracker | public | 2003-09-11 15:44 | 2003-12-13 04:35 |
| Reporter | vboctor | Assigned To | vboctor | ||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 0.18.0rc1 | ||||
| Summary | 0003353: History not updated in bug deletion email | ||||
| Description | The history in the bug deleted email notification does not show an entry for the bug deletion and hence, there is no way to know who deleted the bug and when. | ||||
| Tags | No tags attached. | ||||
| Attached Files | bug_deleted_history_event.diff (2,429 bytes)
Index: core/bug_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/bug_api.php,v retrieving revision 1.43 diff -u -r1.43 bug_api.php --- core/bug_api.php 23 Apr 2003 23:00:24 -0000 1.43 +++ core/bug_api.php 11 Sep 2003 14:12:33 -0000 @@ -362,6 +362,9 @@ $t_bug_table = config_get( 'mantis_bug_table' ); $t_bug_text_table = config_get( 'mantis_bug_text_table' ); + # log deletion of bug + history_log_event_special( $p_bug_id, BUG_DELETED, bug_format_id( $p_bug_id ) ); + email_bug_deleted( $p_bug_id ); # Delete custom fields Index: core/constant_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/constant_inc.php,v retrieving revision 1.6 diff -u -r1.6 constant_inc.php --- core/constant_inc.php 12 Mar 2003 07:56:12 -0000 1.6 +++ core/constant_inc.php 11 Sep 2003 14:12:33 -0000 @@ -132,6 +132,7 @@ define( 'BUGNOTE_STATE_CHANGED', 11 ); define( 'BUG_MONITOR', 12 ); define( 'BUG_UNMONITOR', 13 ); + define( 'BUG_DELETED', 14 ); # bug relationship constants define( 'BUG_DUPLICATE', 0 ); Index: core/history_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/history_api.php,v retrieving revision 1.15 diff -u -r1.15 history_api.php --- core/history_api.php 26 Jul 2003 13:50:20 -0000 1.15 +++ core/history_api.php 11 Sep 2003 14:12:34 -0000 @@ -229,6 +229,9 @@ $v_old_value = user_get_field( $v_old_value, 'username' ); $t_note = lang_get( 'bug_end_monitor' ) . ": " . $v_old_value; break; + case BUG_DELETED: + $t_note = lang_get( 'bug_deleted' ) . ": " . $v_old_value; + break; } } Index: lang/strings_english.txt =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_english.txt,v retrieving revision 1.143 diff -u -r1.143 strings_english.txt --- lang/strings_english.txt 31 Aug 2003 11:32:20 -0000 1.143 +++ lang/strings_english.txt 11 Sep 2003 14:12:42 -0000 @@ -83,6 +83,7 @@ $s_steps_to_reproduce_updated = 'Steps to Reproduce Updated'; $s_file_added = 'File Added'; $s_file_deleted = 'File Deleted'; +$s_bug_deleted = 'Bug Deleted'; $s_make_private = 'Make Private'; $s_make_public = 'Make Public'; | ||||
|
MantisBT: master 03fe4b55 2003-09-11 10:14 Details Diff |
Fix 0003353: History not updated in bug deletion email. M core/bug_api.php - Updated history before sending bug deletion email. M core/constant_inc.php - Added Bug Deleted history event. M core/history_api.php - Added support for Bug Deleted history event. M lang/strings_english.txt - Added Bug Deleted string. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2264 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0003353 |
|
| mod - doc/ChangeLog | Diff File | ||
| mod - lang/strings_english.txt | Diff File | ||
| mod - core/bug_api.php | Diff File | ||
| mod - core/constant_inc.php | Diff File | ||
| mod - core/history_api.php | Diff File | ||