znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
335 stars 82 forks source link

Fixed mentions for deleted tickets. #458

Closed tipue-dev closed 1 year ago

tipue-dev commented 1 year ago

Proposed change

Currently Mentions, that are linked to a ticket, don't get removed when the ticket is deleted. Without a ticket, the Mentions can't be removed anymore by an agent. image This change removes all Mentions from a ticket when it gets deleted.

Checklist

rkaldung commented 1 year ago

Please don't forget a migration module for the cleanup of existing orphans.

tipue-dev commented 1 year ago

Please don't forget a migration module for the cleanup of existing orphans.

This is my first time in that corner of the code. If i should make something differently let me know

tipue-dev commented 1 year ago

Tested the migrations script, it's working now too