Ticket #2725: update_ticket_changetime_with_attachment.patch
| File update_ticket_changetime_with_attachment.patch, 764 bytes (added by Curtis Buys <trac@…>, 6 years ago) |
|---|
-
trunk/trac/attachment.py
151 151 (self.parent_type, self.parent_id, filename, 152 152 self.size, self.time, self.description, self.author, 153 153 self.ipnr)) 154 if self.parent_type == 'ticket': 155 cursor.execute("UPDATE ticket " 156 "SET changetime = %s " 157 "WHERE id = %s", 158 (self.time, self.parent_id)) 154 159 shutil.copyfileobj(fileobj, targetfile) 155 160 self.filename = filename 156 161
