From d39964b0215e8d416ad2a1a9d3278ca8fde707b7 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Fri, 24 May 2019 12:30:31 +0200 Subject: [PATCH] Show information, when item contained in product bundle is disabled --- src/pretix/control/views/item.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pretix/control/views/item.py b/src/pretix/control/views/item.py index 288e08ae73..d31bbc796d 100644 --- a/src/pretix/control/views/item.py +++ b/src/pretix/control/views/item.py @@ -900,6 +900,12 @@ class ItemUpdateGeneral(ItemDetailMixin, EventPermissionRequiredMixin, UpdateVie def get_context_data(self, **kwargs): ctx = super().get_context_data() ctx['plugin_forms'] = self.plugin_forms + + if not ctx['item'].active and ctx['item'].bundled_with.count() > 0: + messages.info(self.request, _("You disabled this item, but it is still part of a product bundle. " + "Your participants won't be able to buy the bundle unless you remove this " + "item from it.")) + return ctx