Edgewall Software

Changes between Initial Version and Version 1 of Ticket #11542, comment 1


Ignore:
Timestamp:
Jul 11, 2014, 5:59:01 PM (5 years ago)
Author:
Peter Suter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11542, comment 1

    initial v1  
    11Deleting a milestone does actually not seem to delete the attachments so far. (Is this a defect? Perhaps this should be changed in a separate ticket first.)
     2
     3{{{#!diff
     4diff -r 19ce84254a0a trac/ticket/model.py
     5--- a/trac/ticket/model.py      Tue Jul 08 04:13:02 2014 +0000
     6+++ b/trac/ticket/model.py      Fri Jul 11 17:56:52 2014 +0200
     7@@ -1011,6 +1011,7 @@
     8         with self.env.db_transaction as db:
     9             self.env.log.info("Deleting milestone %s", self.name)
     10             db("DELETE FROM milestone WHERE name=%s", (self.name,))
     11+            Attachment.delete_all(self.env, self.realm, self.name)
     12             # Don't translate ticket comment (comment:40:ticket:5658)
     13             self.move_tickets(retarget_to, author, "Milestone deleted")
     14             self._old['name'] = None
     15}}}