From 218d9f9f5f9293492aaef5463cdcfca09be9c446 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Thu, 14 Nov 2024 08:57:33 +0500 Subject: [PATCH] fixup! fixup! fixup! mig --- website_event_attendee_fields/models/event_registration.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website_event_attendee_fields/models/event_registration.py b/website_event_attendee_fields/models/event_registration.py index 55eab4e..200ab36 100644 --- a/website_event_attendee_fields/models/event_registration.py +++ b/website_event_attendee_fields/models/event_registration.py @@ -103,6 +103,9 @@ def _parse_answers_for_partner_questions(self, reg_vals, question_ids): Question = self.env["event.question"] partner_vals = {} + if not reg_vals.get("registration_answer_ids"): + return partner_vals + for tuple_answer in reg_vals["registration_answer_ids"]: if tuple_answer[0] != 0: continue