From 0787adcb8e19ab944edf3e66b4f728d9bba89a48 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 2 Oct 2018 17:12:26 +0200 Subject: [PATCH] Fix AttributeError in paypal module --- src/pretix/plugins/paypal/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/paypal/payment.py b/src/pretix/plugins/paypal/payment.py index aa742aa0d2..169c767a8a 100644 --- a/src/pretix/plugins/paypal/payment.py +++ b/src/pretix/plugins/paypal/payment.py @@ -245,7 +245,7 @@ class Paypal(BasePaymentProvider): if payment.state != 'approved': payment_obj.state = OrderPayment.PAYMENT_STATE_FAILED payment_obj.save() - payment.order.log_action('pretix.event.order.payment.failed', { + payment_obj.order.log_action('pretix.event.order.payment.failed', { 'local_id': payment.local_id, 'provider': payment.provider, })