From 1dd6ae6514940a8b12ef4c37b269214858d95e11 Mon Sep 17 00:00:00 2001 From: DemeritCowboy Date: Tue, 8 Oct 2019 13:04:26 -0400 Subject: [PATCH] dev/core#1305 --- CRM/Contact/BAO/Query.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 9d5e64a38a..56acef4c36 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -6419,6 +6419,10 @@ AND displayRelType.is_active = 1 if (!empty($pseudoConstantMetadata['optionGroupName']) || $this->isPseudoFieldAnFK($fieldSpec) ) { + // dev/core#1305 @todo this is not the right thing to do but for now avoid fatal error + if (empty($fieldSpec['bao'])) { + continue; + } $sortedOptions = $fieldSpec['bao']::buildOptions($fieldSpec['name'], NULL, [ 'orderColumn' => CRM_Utils_Array::value('labelColumn', $pseudoConstantMetadata, 'label'), ]); -- 2.25.1