mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
bugfix
This commit is contained in:
@@ -65,7 +65,7 @@ class CrossSellingService:
|
|||||||
result = (
|
result = (
|
||||||
(category,
|
(category,
|
||||||
self._prepare_items(None, items_qs, discount_info),
|
self._prepare_items(None, items_qs, discount_info),
|
||||||
None)
|
'')
|
||||||
for (category, items_qs, discount_info) in self._applicable_categories(0)
|
for (category, items_qs, discount_info) in self._applicable_categories(0)
|
||||||
)
|
)
|
||||||
return [(category, items, form_prefix) for (category, items, form_prefix) in result if len(items) > 0]
|
return [(category, items, form_prefix) for (category, items, form_prefix) in result if len(items) > 0]
|
||||||
|
|||||||
@@ -631,7 +631,7 @@ class AddOnsStep(CartMixin, AsyncAction, TemplateFlowStep):
|
|||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def cross_selling_is_applicable(self):
|
def cross_selling_is_applicable(self):
|
||||||
return any(len(items) > 0 for (category, items) in self.cross_selling_data)
|
return any(len(items) > 0 for (category, items, form_prefix) in self.cross_selling_data)
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def cross_selling_data(self):
|
def cross_selling_data(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user