mirror of
https://github.com/pretix/pretix.git
synced 2026-11-10 01:17:07 +00:00
Add check if in subevent
This commit is contained in:
1 parent
e5bbed60c9
commit
5ab6381bb4
1 file changed
+1
-1
@@ -268,7 +268,7 @@ class CartMixin:
|
||||
|
||||
itemvarsums = Counter()
|
||||
for p in cartpos:
|
||||
if p.subevent == self.subevent:
|
||||
if not self.subevent or p.subevent == self.subevent:
|
||||
itemvarsums[p.variation or p.item] += 1
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user