Skip to content

Commit

Permalink
Set project cookie when processing email
Browse files Browse the repository at this point in the history
  • Loading branch information
SL-Gundam committed Mar 20, 2018
1 parent bde4923 commit 544163c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/mail_api.php
Expand Up @@ -876,6 +876,7 @@ private function add_bug( &$p_email, $p_overwrite_project_id = FALSE )


$t_project_id = bug_get_field( $t_bug_id, 'project_id' ); $t_project_id = bug_get_field( $t_bug_id, 'project_id' );
ERP_set_temporary_overwrite( 'project_override', $t_project_id ); ERP_set_temporary_overwrite( 'project_override', $t_project_id );
helper_set_current_project( $t_project_id );


# Event integration # Event integration
# Core mantis event already exists within bugnote_add function # Core mantis event already exists within bugnote_add function
Expand Down Expand Up @@ -938,6 +939,7 @@ private function add_bug( &$p_email, $p_overwrite_project_id = FALSE )


$t_project_id = ( ( $p_overwrite_project_id === FALSE ) ? $this->_mailbox[ 'project_id' ] : $p_overwrite_project_id ); $t_project_id = ( ( $p_overwrite_project_id === FALSE ) ? $this->_mailbox[ 'project_id' ] : $p_overwrite_project_id );
ERP_set_temporary_overwrite( 'project_override', $t_project_id ); ERP_set_temporary_overwrite( 'project_override', $t_project_id );
helper_set_current_project( $t_project_id );


$t_bug_data = new BugData; $t_bug_data = new BugData;


Expand Down Expand Up @@ -1115,6 +1117,7 @@ private function add_bug( &$p_email, $p_overwrite_project_id = FALSE )
$this->add_msg_ids( $t_bug_id, $t_references ); $this->add_msg_ids( $t_bug_id, $t_references );


ERP_set_temporary_overwrite( 'project_override', NULL ); ERP_set_temporary_overwrite( 'project_override', NULL );
helper_set_current_project( ALL_PROJECTS );


$this->show_memory_usage( 'Finished processing attachments' ); $this->show_memory_usage( 'Finished processing attachments' );
} }
Expand Down
1 change: 1 addition & 0 deletions doc/CHANGELOG.txt
Expand Up @@ -14,6 +14,7 @@ Okt 2017 - EmailReporting-0.10.1
- Retired old functionality now being handled by EmailReplyParser - Retired old functionality now being handled by EmailReplyParser
- process_complex_value replaced with MantisBT ConfigParser to process mail_bug_priority form value - process_complex_value replaced with MantisBT ConfigParser to process mail_bug_priority form value
- Email priority will be taken from "X-MSMail-Priority" and "Importance" if "X-Priority" is not available - Email priority will be taken from "X-MSMail-Priority" and "Importance" if "X-Priority" is not available
- Set project cookie when processing email


Sep 2017 - EmailReporting-0.10.0 Sep 2017 - EmailReporting-0.10.0
- Officially compatible with MantisBT 2.x.x - Officially compatible with MantisBT 2.x.x
Expand Down

0 comments on commit 544163c

Please sign in to comment.