From 0b7429974e479cb8f0e1f87e1b280649721e82c2 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 8 Oct 2019 21:04:10 +1100 Subject: [PATCH] dev/core#1269 Add in fix for underfined index bao in parsePseudoConstantField for Import Parser --- CRM/Import/Parser.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index 3c71a3ca33..da2ff17397 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -559,6 +559,10 @@ abstract class CRM_Import_Parser { * @return mixed */ protected function parsePseudoConstantField($submittedValue, $fieldSpec) { + // dev/core#1289 Somehow we have wound up here but the BAO has not been specified in the fieldspec so we need to check this but future us problem, for now lets just return the submittedValue + if (!isset($fieldSpec['bao'])) { + return $submittedValue; + } /* @var \CRM_Core_DAO $bao */ $bao = $fieldSpec['bao']; // For historical reasons use validate as context - ie disabled name matches ARE permitted. -- 2.25.1