From 792cfd2cbb78744df6c92d239d44cd1993ecc84a Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sun, 12 Sep 2021 08:02:19 -0400 Subject: [PATCH] dashboard has no bridge --- Civi/Api4/Query/Api4SelectQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Api4/Query/Api4SelectQuery.php b/Civi/Api4/Query/Api4SelectQuery.php index 191ef0f46b..ff1590c32e 100644 --- a/Civi/Api4/Query/Api4SelectQuery.php +++ b/Civi/Api4/Query/Api4SelectQuery.php @@ -1030,7 +1030,7 @@ class Api4SelectQuery { $joinPath = $joiner->getPath($explicitJoin['table'] ?? $this->getFrom(), $pathArray); } catch (\API_Exception $e) { - if ($explicitJoin['bridge']) { + if (!empty($explicitJoin['bridge'])) { // Try looking up custom field in bridge entity instead try { $useBridgeTable = TRUE; -- 2.25.1