APIv4: Implicit joins for email_primary, etc cause error
In the APIv4 Explorer, you can select:
- Contribution get
- Select contact_id.email_primary
Result is an error:
TypeError: Civi\\Api4\\Service\\Schema\\Joiner::getExtraJoinSql(): Return value must be of type string, null returned in Civi\\Api4\\Service\\Schema\\Joiner::getExtraJoinSql() (line 82 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/Civi/Api4/Service/Schema/Joiner.php).
Same results with email_billing, phone_billing and phone_primary. It does work if you get contacts, just not with the join. Don't believe this is a recent regression.