From cf3b6041821b05137bab860730cafdade4406cd9 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 18 Sep 2023 22:23:42 +1200 Subject: [PATCH] Ensure profiles are assigned to template, even when empty --- CRM/Event/Form/Registration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index 6c7752689b..84f61d77b5 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -493,6 +493,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { */ public function buildCustom($id, $name) { if (!$id) { + $this->assign($name, []); return; } -- 2.25.1