@@ -806,10 +806,6 @@ function mc_issue_update( $p_username, $p_password, $p_issue_id, $p_issue ) {
806
806
$ t_bug_data ->target_version = isset ( $ p_issue ['target_version ' ] ) ? $ p_issue ['target_version ' ] : '' ;
807
807
}
808
808
809
-
810
- # submit the issue
811
- $ t_is_success = $ t_bug_data ->update ( /* update_extended */ true , /* bypass_email */ true );
812
-
813
809
mci_issue_set_custom_fields ( $ p_issue_id , $ p_issue ['custom_fields ' ], true );
814
810
if ( isset ( $ p_issue ['monitors ' ] ) )
815
811
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 ) {
830
826
if ( bugnote_exists ( $ t_bugnote_id ) ) {
831
827
bugnote_set_text ( $ t_bugnote_id , $ t_note ['text ' ] );
832
828
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 ' );
834
829
bugnote_date_update ( $ t_bugnote_id );
835
830
if ( isset ( $ t_note ['time_tracking ' ] ) )
836
831
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 ) {
846
841
}
847
842
}
848
843
849
- return $ t_is_success ;
844
+ # submit the issue
845
+ return $ t_bug_data ->update ( /* update_extended */ true , /* bypass_email */ true );
846
+
850
847
}
851
848
852
849
/**
0 commit comments