Mantis no longer sending email on note added

Not long ago I upgraded a couple of mantis installations to 1.1.2. Not long after, I got reports about missing email notifications. We used to have emails sent out to stake holders (developers, reporters etc.) when someone added a note to a bug report. Not so after the upgrade.

I spent some time pouring over the various things that I could have done wrong. Email server… No, emails were sent out on bug added. Maybe some new config setting I should have added? Browsing through config_defaults_inc.php I did indeed find some settings I really liked, but nothing that had an impact on the problem of sending of emails when bug notes were added.

Finally I made some wild google searches, and found the solution! The mantis bug database knew about this case as reported in this bug.

What you need to do is to update the file core/bugnote_api.php as per this subversion diff:

First, make a copy of bugnote_api.php to bugnote_api.php.org.

Open bugnote_api.php in some decent editor, like nano.

Find line 102 and replace

function bugnote_add ( $p_bug_id, $p_bugnote_text, $p_time_tracking =
'0:00', $p_private = false, $p_type = 0, $p_attr = '', $p_user_id =
null ) {

with

function bugnote_add ( $p_bug_id, $p_bugnote_text, $p_time_tracking =
'0:00', $p_private = false, $p_type = 0, $p_attr = '', $p_user_id =
null, $p_send_email = TRUE ) {

After saving your developers will get email notes when customers add notes to bugs.

The fact that this fix is checked in seems to indicate it wont happen in future releases.

–Jesper

  • Share/Bookmark

Leave a comment

Your comment