From: demeritcowboy Date: Sun, 12 Sep 2021 12:02:19 +0000 (-0400) Subject: dashboard has no bridge X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=792cfd2cbb78744df6c92d239d44cd1993ecc84a;p=civicrm-core.git dashboard has no bridge --- 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;