Skip to content

Commit 95216ca

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 9c1dce1 commit 95216ca

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎api/soap/mc_issue_api.php

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

809-
810-
# submit the issue
811-
$t_is_success = $t_bug_data->update( /* update_extended */ true, /* bypass_email */ true );
812-
813809
mci_issue_set_custom_fields( $p_issue_id, $p_issue['custom_fields'], true );
814810
if ( isset ( $p_issue['monitors'] ) )
815811
mci_issue_set_monitors( $p_issue_id , $t_user_id, $p_issue['monitors'] );
@@ -830,7 +826,6 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {
830826
if ( bugnote_exists( $t_bugnote_id ) ) {
831827
bugnote_set_text( $t_bugnote_id, $t_note['text'] );
832828
bugnote_set_view_state( $t_bugnote_id, $t_view_state_id == VS_PRIVATE );
833-
$t_eta_id = isset( $p_issue['eta'] ) ? mci_get_eta_id( $p_issue['eta'] ) : config_get('default_bug_eta');
834829
bugnote_date_update( $t_bugnote_id );
835830
if ( isset( $t_note['time_tracking'] ) )
836831
bugnote_set_time_tracking( $t_bugnote_id, mci_get_time_tracking_from_note( $p_issue_id, $t_note ) );
@@ -846,7 +841,9 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {
846841
}
847842
}
848843

849-
return $t_is_success;
844+
# submit the issue
845+
return $t_bug_data->update( /* update_extended */ true, /* bypass_email */ true );
846+
850847
}
851848

852849
/**

0 commit comments

Comments
 (0)
Please sign in to comment.