Trinitycore: [335] - mail_items not deleted when expire (after return)

Created on 24 Aug 2017  路  7Comments  路  Source: TrinityCore/TrinityCore

Description:

When mail with items is returned and expire_time ends, the mail is deleted, but mail_items and items in item_instance still in the DB
You can see all mail_items without mail in DB:

SELECT * FROM `mail_items` WHERE `mail_id` NOT IN (SELECT `id` FROM `mail`);

Steps to reproduce the problem:

  1. Send a mail with items
  2. Wait expire_time ends and mail is returned
  3. Wait expire_time ends and mail is deleted
    (you can update the expire_time and restart server for make faster the process)

Branch(es): 3.3.5

TC rev. hash/commit: 445c5a00e8

TDB version: TDB335.63

Operating system: Debian

Branch-3.3.5a Comp-Core Feedback-PatchFix

Most helpful comment

All 7 comments

@Vincent-Michael no!
Then items in item_instance still and...not is a good idea xD

Edit: I see you edit gist, I will try it tomorrow

Tested and works fine @Vincent-Michael 馃憤

Thanks!

@Vincent-Michael time to commit :dancer:

C'mon @Vincent-Michael 馃拑

Unless he uses private repositories, it looks like he doesn't have a repository to push from.
I am thinking maybe one of us could just create a PR and let V-M merge it if he wants to.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tje3d picture tje3d  路  3Comments

Rushor picture Rushor  路  3Comments

Jildor picture Jildor  路  3Comments

Rushor picture Rushor  路  3Comments

DDuarte picture DDuarte  路  3Comments