Skip to content
Permalink
Browse files

Set project cookie when processing email

  • Loading branch information...
SL-Gundam committed Mar 20, 2018
1 parent bde4923 commit 544163c97836229422f933257c0f5fd4dd7f8d82
Showing with 4 additions and 0 deletions.
  1. +3 −0 core/mail_api.php
  2. +1 −0 doc/CHANGELOG.txt
@@ -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' );
ERP_set_temporary_overwrite( 'project_override', $t_project_id );
helper_set_current_project( $t_project_id );
# Event integration
# Core mantis event already exists within bugnote_add function
@@ -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 );
ERP_set_temporary_overwrite( 'project_override', $t_project_id );
helper_set_current_project( $t_project_id );
$t_bug_data = new BugData;
@@ -1115,6 +1117,7 @@ private function add_bug( &$p_email, $p_overwrite_project_id = FALSE )
$this->add_msg_ids( $t_bug_id, $t_references );
ERP_set_temporary_overwrite( 'project_override', NULL );
helper_set_current_project( ALL_PROJECTS );
$this->show_memory_usage( 'Finished processing attachments' );
}
@@ -14,6 +14,7 @@ Okt 2017 - EmailReporting-0.10.1
- Retired old functionality now being handled by EmailReplyParser
- 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
- Set project cookie when processing email

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

0 comments on commit 544163c

Please sign in to comment.
You can’t perform that action at this time.