From: Eileen McNaughton Date: Thu, 7 Dec 2023 19:12:02 +0000 (+1300) Subject: E-notice fix when no template exists X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e625a491d3049e55a70aa4355a56723855db50d3;p=civicrm-core.git E-notice fix when no template exists --- 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; }