Commit efdd406 Fix passing the environment when getting the ticket

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

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

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