From 22b011594a64c8bd9bd8c7b014905082c27f5f34 Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Thu, 17 Jul 2025 13:53:21 +0200 Subject: [PATCH] translate_property_mappings: old_id not in checkin_list_map --- src/pretix/base/datasync/sourcefields.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pretix/base/datasync/sourcefields.py b/src/pretix/base/datasync/sourcefields.py index e515127834..3939851d84 100644 --- a/src/pretix/base/datasync/sourcefields.py +++ b/src/pretix/base/datasync/sourcefields.py @@ -520,7 +520,12 @@ def translate_property_mappings(property_mappings, checkin_list_map): for mapping in mappings: if mapping["pretix_field"].startswith("checkin_date_"): old_id = int(mapping["pretix_field"][len("checkin_date_"):]) - mapping["pretix_field"] = "checkin_date_%d" % checkin_list_map[old_id].pk + if old_id not in checkin_list_map: + # old_id might not be in checkin_list_map, because copying of an event series only copies check-in + # lists covering the whole series, not individual dates. + mapping["pretix_field"] = "_invalid_" + mapping["pretix_field"] + else: + mapping["pretix_field"] = "checkin_date_%d" % checkin_list_map[old_id].pk return json.dumps(mappings)