Skip to content

Commit

Permalink
Fix #12217: Email is not sent when assigning new issue
Browse files Browse the repository at this point in the history
Signed-off-by: John Reese <jreese@leetcode.net>
  • Loading branch information
atrol authored and amyreese committed Aug 23, 2010
1 parent 4de2365 commit 356d582
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/bug_api.php
Expand Up @@ -529,6 +529,12 @@ function update( $p_update_extended = false, $p_bypass_mail = false ) {

# allow bypass if user is sending mail separately
if( false == $p_bypass_mail ) {
# bug assigned
if( $t_old_data->handler_id != $this->handler_id ) {
email_generic( $c_bug_id, 'owner', 'email_notification_title_for_action_bug_assigned' );
return true;
}

# status changed
if( $t_old_data->status != $this->status ) {
$t_status = MantisEnum::getLabel( config_get( 'status_enum_string' ), $this->status );
Expand All @@ -537,12 +543,6 @@ function update( $p_update_extended = false, $p_bypass_mail = false ) {
return true;
}

# bug assigned
if( $t_old_data->handler_id != $this->handler_id ) {
email_generic( $c_bug_id, 'owner', 'email_notification_title_for_action_bug_assigned' );
return true;
}

# @todo handle priority change if it requires special handling
# generic update notification
email_generic( $c_bug_id, 'updated', 'email_notification_title_for_action_bug_updated' );
Expand Down

0 comments on commit 356d582

Please sign in to comment.