APIv4 - Fix wildcard expansion in joins
authorColeman Watts <coleman@civicrm.org>
Wed, 10 Feb 2021 14:53:43 +0000 (09:53 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 10 Feb 2021 14:53:43 +0000 (09:53 -0500)
commita44a39449669480d17042af93a178b44d6d334c9
tree5b58fb50cfdf4e7d2958d31d61e3115dc71cfc69
parentc15d4a0c11b323f61e99bffc75987213470b0a07
APIv4 - Fix wildcard expansion in joins

Passing a fake field (e.g. related_entity.*) to autoJoinFk was triggering it to always re-attempt a join,
because it could never find a filed named "*".
Instead pass it a real field (every entity has an "id").
Civi/Api4/Query/Api4SelectQuery.php