From c252313a3a4ea9e0948c625b36c25fcc1575c478 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 30 Aug 2023 16:40:38 +1200 Subject: [PATCH] Move smarty assign to be always assigned (notices) --- CRM/Profile/Form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index 19c7667761..247f41705b 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -492,7 +492,6 @@ class CRM_Profile_Form extends CRM_Core_Form { $page->run(); } } - $this->assign('multiRecordFieldListing', $multiRecordFieldListing); // is profile double-opt in? if (!empty($this->_fields['group']) && @@ -521,7 +520,7 @@ class CRM_Profile_Form extends CRM_Core_Form { CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1')); } } - + $this->assign('multiRecordFieldListing', $multiRecordFieldListing ?? NULL); if (!is_array($this->_fields)) { CRM_Core_Session::setStatus(ts('This feature is not currently available.'), ts('Sorry'), 'error'); CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1')); -- 2.25.1