Commit efdd406 Fix passing the environment when getting the ticket

1 file Authored and Committed by puiterwijk 7 months ago
Fix passing the environment when getting the ticket

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>

    
1 @@ -104,7 +104,7 @@
2       # Stuff related to undoing a ticket change
3       def deleteTicketChange(self, req, ticket_id, changetime):
4           """ Undoes a specific ticket change. """
5 -         ticket = Ticket(req, ticket_id)
6 +         ticket = Ticket(self.env, ticket_id)
7           ticket.delete_change(changetime, is_ts=True)
8           return True
9