From 682d0f886d63df50ca4551e01c5a6c42a7e71f1a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 1 Jul 2024 14:39:34 +0200 Subject: [PATCH] Fix order change edge case (PRETIXEU-ABH) --- src/pretix/base/services/orders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/services/orders.py b/src/pretix/base/services/orders.py index 7a9f189d22..fa8762d182 100644 --- a/src/pretix/base/services/orders.py +++ b/src/pretix/base/services/orders.py @@ -2042,7 +2042,7 @@ class OrderChangeManager: # This also prevents accidental removal through the UI because a hidden product will no longer # be part of the input. (a.variation and a.variation.unavailability_reason(has_voucher=True, subevent=a.subevent)) - or (a.variation and self.order.sales_channel not in a.variation.sales_channels) + or (a.variation and not a.variation.all_sales_channels and not a.variation.limit_sales_channels.contains(self.order.sales_channel)) or a.item.unavailability_reason(has_voucher=True, subevent=a.subevent) or ( not item.all_sales_channels and