Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 268f72a

Browse files
committedSep 22, 2011
Send email notifications when updating bugs using the SOAP API
Fix #13339 : Email notifications through mantis mylyn connector / SOAP
1 parent 3caa62b commit 268f72a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed
 

‎api/soap/mc_issue_api.php

+3-7
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,6 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {
807807
$t_bug_data->target_version = isset( $p_issue['target_version'] ) ? $p_issue['target_version'] : '';
808808
}
809809

810-
811-
# submit the issue
812-
$t_is_success = $t_bug_data->update( /* update_extended */ true, /* bypass_email */ true );
813-
814810
mci_issue_set_custom_fields( $p_issue_id, $p_issue['custom_fields'], true );
815811
if ( isset ( $p_issue['monitors'] ) )
816812
mci_issue_set_monitors( $p_issue_id , $t_user_id, $p_issue['monitors'] );
@@ -831,7 +827,6 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {
831827
if ( bugnote_exists( $t_bugnote_id ) ) {
832828
bugnote_set_text( $t_bugnote_id, $t_note['text'] );
833829
bugnote_set_view_state( $t_bugnote_id, $t_view_state_id == VS_PRIVATE );
834-
$t_eta_id = isset( $p_issue['eta'] ) ? mci_get_eta_id( $p_issue['eta'] ) : config_get('default_bug_eta');
835830
bugnote_date_update( $t_bugnote_id );
836831
if ( isset( $t_note['time_tracking'] ) )
837832
bugnote_set_time_tracking( $t_bugnote_id, mci_get_time_tracking_from_note( $p_issue_id, $t_note ) );
@@ -846,8 +841,9 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {
846841
}
847842
}
848843
}
849-
850-
return $t_is_success;
844+
845+
# submit the issue
846+
return $t_is_success = $t_bug_data->update( /* update_extended */ true, /* bypass_email */ false);
851847
}
852848

853849
/**

0 commit comments

Comments
 (0)
Please sign in to comment.