diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index 3c71a3ca33a1..da2ff173971f 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -559,6 +559,10 @@ protected function checkContactDuplicate(&$formatValues) { * @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.