Skip to content

Commit

Permalink
Fixed issue with db_get_table and MantisBT 1.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SL-Gundam committed Jan 20, 2017
1 parent 844c81a commit b27058d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/mail_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ public static function delete_references_for_bug_id( $p_bug_id )
public static function clean_references_for_deleted_issues()
{
$t_query = 'DELETE FROM ' . plugin_table( 'msgids' ) . ' WHERE NOT EXISTS'
. '( SELECT 1 FROM ' . db_get_table( 'bug' ) . ' B WHERE B.id = issue_id )';
. '( SELECT 1 FROM ' . db_get_table( 'mantis_bug_table' ) . ' B WHERE B.id = issue_id )';
db_query_bound( $t_query );
}

Expand Down
5 changes: 4 additions & 1 deletion doc/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog:
Jul 2016 - EmailReporting-0.9.3
Jan 2017 - EmailReporting-0.9.3.1
- Fixed issue with db_get_table and MantisBT 1.2.x (legacy issue)

Jan 2017 - EmailReporting-0.9.3
- Preliminary support for MantisBT 2.0.x and ModernUI
- Fix possible fatal error on return value
- Added error when __construct is not run when it should have
Expand Down

0 comments on commit b27058d

Please sign in to comment.