dashboard has no bridge
authordemeritcowboy <demeritcowboy@hotmail.com>
Sun, 12 Sep 2021 12:02:19 +0000 (08:02 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Sun, 12 Sep 2021 12:02:19 +0000 (08:02 -0400)
Civi/Api4/Query/Api4SelectQuery.php

index 191ef0f46b32eb1d10d91a15c54c162c7287c9b0..ff1590c32e7eacd57b25f783804fdf60339121d3 100644 (file)
@@ -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;