From: Sheryl C. <sh...@pe...> - 2004-05-22 07:44:29
|
Thanks, Victor! - Sheryl ----- Original Message ----- From: "Victor Boctor" <vi...@fu...> To: <man...@li...> Sent: Saturday, May 22, 2004 3:32 AM Subject: RE: [Mantisbt-help] Private bugs notify non-developers by email? Hi Mitch/Sheryl, I had a look at #3824, and the problem is caused because your min threshold for notification is less than the private bug threshold. I think so far most of the use cases were that notifications sent to DEVELOPERS and above, and hence, private issues were not a problem. I fixed this case in the latest code. However, for 0.18.x users, following is the change: In core/email_api.php: email_collect_recipients() **** OLD CODE SNIPPET *** # threshold $t_threshold_min = email_notify_flag( $p_notify_type, 'threshold_min' ); $t_threshold_max = email_notify_flag( $p_notify_type, 'threshold_max' ); $t_threshold_users = project_get_all_user_rows( $t_project_id, $t_threshold_min ); foreach( $t_threshold_users as $t_user ) { if ( $t_user['access_level'] <= $t_threshold_max ) { $t_recipients[$t_user['id']] = true; } } **** NEW CODE SNIPPET *** # threshold $t_bug_is_private = bug_get_field( $p_bug_id, 'view_state' ) == VS_PRIVATE; $t_threshold_min = email_notify_flag( $p_notify_type, 'threshold_min' ); $t_threshold_max = email_notify_flag( $p_notify_type, 'threshold_max' ); $t_threshold_users = project_get_all_user_rows( $t_project_id, $t_threshold_min ); foreach( $t_threshold_users as $t_user ) { if ( $t_user['access_level'] <= $t_threshold_max ) { if ( !$t_bug_is_private || $t_user['access_level'] >= config_get( 'private_bug_threshold' ) ) { $t_recipients[$t_user['id']] = true; } } } Please let me know if this fixes your problem. Regards, Victor. ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Mantisbt-help mailing list Man...@li... https://lists.sourceforge.net/lists/listinfo/mantisbt-help |