From e625a491d3049e55a70aa4355a56723855db50d3 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 8 Dec 2023 08:12:02 +1300 Subject: [PATCH] E-notice fix when no template exists --- CRM/Import/Forms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Import/Forms.php b/CRM/Import/Forms.php index f794fb662e..81989b5950 100644 --- a/CRM/Import/Forms.php +++ b/CRM/Import/Forms.php @@ -953,7 +953,7 @@ class CRM_Import_Forms extends CRM_Core_Form { ->addWhere('name', '=', 'import_' . $mappingName) ->addWhere('is_template', '=', TRUE) ->execute()->first(); - $this->templateID = $templateJob['id']; + $this->templateID = $templateJob['id'] ?? NULL; return $templateJob ?? NULL; } -- 2.25.1