Skip to content

Commit b27058d

Browse files
committed
Fixed issue with db_get_table and MantisBT 1.2.x
1 parent 844c81a commit b27058d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/mail_api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ public static function delete_references_for_bug_id( $p_bug_id )
15311531
public static function clean_references_for_deleted_issues()
15321532
{
15331533
$t_query = 'DELETE FROM ' . plugin_table( 'msgids' ) . ' WHERE NOT EXISTS'
1534-
. '( SELECT 1 FROM ' . db_get_table( 'bug' ) . ' B WHERE B.id = issue_id )';
1534+
. '( SELECT 1 FROM ' . db_get_table( 'mantis_bug_table' ) . ' B WHERE B.id = issue_id )';
15351535
db_query_bound( $t_query );
15361536
}
15371537

doc/CHANGELOG.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Changelog:
2-
Jul 2016 - EmailReporting-0.9.3
2+
Jan 2017 - EmailReporting-0.9.3.1
3+
- Fixed issue with db_get_table and MantisBT 1.2.x (legacy issue)
4+
5+
Jan 2017 - EmailReporting-0.9.3
36
- Preliminary support for MantisBT 2.0.x and ModernUI
47
- Fix possible fatal error on return value
58
- Added error when __construct is not run when it should have

0 commit comments

Comments
 (0)