Skip to content

Commit

Permalink
Always (re-)create ticket snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschuppi81 committed Jul 5, 2024
1 parent fd56707 commit 0500aca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/onegov/org/views/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,7 @@ def handle_reservation_tickets(reservation: 'BaseReservation') -> None:
assert request.current_user is not None

close_ticket(ticket, request.current_user, request)
if not ticket.snapshot:
ticket.create_snapshot(request)
ticket.create_snapshot(request)

payment = ticket.handler.payment
if (payment and PaymentCollection(request.session).query()

Check warning on line 610 in src/onegov/org/views/resource.py

View check run for this annotation

Codecov / codecov/patch

src/onegov/org/views/resource.py#L609-L610

Added lines #L609 - L610 were not covered by tests
Expand Down

0 comments on commit 0500aca

Please sign in to comment.