View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015647 | mantisbt | public | 2013-03-13 07:02 | 2014-02-07 18:24 | |
Reporter | HeikoSL | Assigned To | atrol | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.14 | ||||
Target Version | 1.2.16 | Fixed in Version | 1.2.16 | ||
Summary | 0015647: email subject is build manually in function email_bug_info_to_one_user() | ||||
Description | The email subject is build manually in the function email_bug_info_to_one_user. But there is a function for doing that: email_build_subject(). A patch file is attached. | ||||
Additional Information | For customization someone (me) may want to add event signalling to email_build_subject() function. That would let us use a plugin to customize email subjects. Therefore all email subjects have to be build by the same function. | ||||
Tags | No tags attached. | ||||
Attached Files | build_subject.patch (849 bytes)
From 65fb91502bbeb0faba36b6791089261459115584 Mon Sep 17 00:00:00 2001 From: root <root@bugtracker.local> Date: Wed, 13 Mar 2013 11:31:56 +0100 Subject: [PATCH] email_bug_info_to_one_user() is not using email_build_subject() function --- core/email_api.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/core/email_api.php b/core/email_api.php index 92d23f3..0c3ac15 100644 --- a/core/email_api.php +++ b/core/email_api.php @@ -1200,7 +1200,7 @@ function email_bug_info_to_one_user( $p_visible_bug_data, $p_message_id, $p_proj } # build subject - $t_subject = '[' . $p_visible_bug_data['email_project'] . ' ' . bug_format_id( $p_visible_bug_data['email_bug'] ) . ']: ' . $p_visible_bug_data['email_summary']; + $t_subject = email_build_subject($p_visible_bug_data['email_bug']); # build message -- 1.7.2.5 | ||||
Submitting a patch is always a good idea, as it increases the chances of improvement eventually making it into MantisBT core. All contributions are welcome and greatly appreciated. Patch submissions can be made in several ways. In the order of preference:
Please make sure that your submissions adhere to our Coding Guidelines [2], if they don't your patch might be rejected. [1] https://github.com/mantisbt/mantisbt |
|
I will try to send a pull request on the GitHub repo ... |
|
Fixed as part of other pull request https://github.com/mantisbt/mantisbt/pull/77 |
|