dev/core#4330 - Fix APIv4 orderBy to resolve ambiguous column names
authorcolemanw <coleman@civicrm.org>
Mon, 5 Jun 2023 00:29:17 +0000 (20:29 -0400)
committercolemanw <coleman@civicrm.org>
Mon, 5 Jun 2023 14:06:41 +0000 (10:06 -0400)
commitfac3f2e0d813e8df321639bc711163b46802ea87
tree1e480e64891af723b0e4cda95c81482c4fe1b559
parent47c1b5f7a1304fabf82bb119d88c22f8e4106f98
dev/core#4330 - Fix APIv4 orderBy to resolve ambiguous column names

See https://lab.civicrm.org/dev/core/-/issues/4330
This regressed from ff2a73c, the fix is to only use names from the select
clause if they are actual aliases.
Civi/Api4/Query/Api4SelectQuery.php
tests/phpunit/api/v4/Entity/AddressTest.php