From a8893bdc96a744a0634e08f4ea46e0557e85b445 Mon Sep 17 00:00:00 2001 From: Kian Cross Date: Wed, 3 Jan 2024 10:03:13 +0000 Subject: [PATCH] Fix incorrect order status on customer profile orders (#3785) When a customer views the list of their orders on their profile, orders which have been cancelled with a fee are displayed as 'paid'. This commit fixes this by using the same logic from other places where order status badges are displayed. --- src/pretix/presale/views/customer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/views/customer.py b/src/pretix/presale/views/customer.py index 2b59b3cb9..e7203db24 100644 --- a/src/pretix/presale/views/customer.py +++ b/src/pretix/presale/views/customer.py @@ -400,7 +400,7 @@ class ProfileView(CustomerRequiredMixin, ListView): for o in ctx['orders']: if o.pk not in annotated: continue - o.count_positions = annotated.get(o.pk)['pcnt'] + o.pcnt = annotated.get(o.pk)['pcnt'] return ctx