View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0015235 | mantisbt | api soap | public | 2012-11-24 15:37 | 2012-12-05 20:40 |
| Reporter | trehn | Assigned To | rombert | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Product Version | 1.2.12 | ||||
| Summary | 0015235: Reporting an issue via the SOAP API does not trigger event EVENT_REPORT_BUG | ||||
| Description | In the function 'mc_issue_add' in api/soap/mc_issue_api.php the event EVENT_REPORT_BUG is never triggered. This may cause some plugins to fail. | ||||
| Additional Information | I have attached a simple patch to this issue. | ||||
| Tags | No tags attached. | ||||
| Attached Files | patch-issue_add_soap.patch (459 bytes)
--- a/api/soap/mc_issue_api.php
+++ b/api/soap/mc_issue_api.php
@@ -691,6 +691,9 @@ function mc_issue_add( $p_username, $p_password, $p_issue ) {
mci_tag_set_for_issue( $t_issue_id, $p_issue['tags'], $t_user_id );
}
+ # Allow plugins to post-process bug data with the new bug ID
+ event_signal( 'EVENT_REPORT_BUG', array( $t_bug_data, $t_issue_id ) );
+
email_new_bug( $t_issue_id );
return $t_issue_id; | ||||