Deleting a milestone should delete its attachments — at Version 1
|Reported by:||Peter Suter||Owned by:|
|Severity:||normal||Keywords:||attachment delete milestone|
Description (last modified by )
Deleting a milestone does not delete its attachments. (As previously discussed.)
diff -r 19ce84254a0a trac/ticket/model.py
a b 1011 1011 with self.env.db_transaction as db: 1012 1012 self.env.log.info("Deleting milestone %s", self.name) 1013 1013 db("DELETE FROM milestone WHERE name=%s", (self.name,)) 1014 1014 1015 # Don't translate ticket comment (comment:40:ticket:5658) 1015 1016 self.move_tickets(retarget_to, author, "Milestone deleted") 1016 1017 self._old['name'] = None
Reparenting of attachments when a milestone is renamed was previously fixed in #7933 and a unit test was added.
TODO A similar unit test should be added for deleting attachments.