View Issue Details

IDProjectCategoryView StatusLast Update
0015235mantisbtapi soappublic2012-12-05 20:40
Reportertrehn Assigned Torombert  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.2.12 
Summary0015235: 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.

TagsNo 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;
patch-issue_add_soap.patch (459 bytes)   

Relationships

duplicate of 0013498 closeddregad EVENT_REPORT_BUG not raised via SOAP API 

Activities

rombert

rombert

2012-11-25 17:43

reporter   ~0034388

Thanks for your report and the contribution. This is being tracked and discussed in bug 0013498, let's continue the discussion over there.