Hi,
I ran into the exact same problem today (we upgraded mantis to version 1.1.2 this weekend) and are dealing with some issues today.
The suggestion by incrediblehelp didn't work for me. In fact I think these default settings are correct because they prevent mails by default and can be overwritten later with actual parameters ($g_notify_flags).
After investigating the code (and I'm not an php expert) I think I found a bug in mantis code.
bugnote_add.php calls a function bugnote_add in core\bugnote_api.php (see line 55 of bugnote_add.php).
core\bugnote_api.php defines the function "bugnote_add". At the end of this function (line 167 and following) there is code to actual send emails. Two conditions must be met.
1) $p_send_email (a parameter obviously determining whether emails should be sent) must be true
2) $p_bugnote_text must not be null
But the parameter $p_send_mail is never defined and thus always false!
My guess is that this parameter should be implemented as a default parameter as in core\user_api.php (see line 1169).
So I modified line 102 of core\bugnote_api.php accordingly from
Code: Select all
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 ) {
to
Code: Select all
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 ) {
and now it works.
Hope that helps and works for you too.