APIv4 - Fix pseudoconstant matching function to pass params correctly across joins
authorColeman Watts <coleman@civicrm.org>
Wed, 7 Jul 2021 19:54:57 +0000 (15:54 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 8 Jul 2021 15:04:47 +0000 (11:04 -0400)
commit265192b2c2d5e77a4125af478c9c753e62fc7257
tree2495adc05bf9ef8f6d3c942da3f66f264ee39d3b
parenta82068b5b77d254a52b1e291b4e3496caaed4bac
APIv4 - Fix pseudoconstant matching function to pass params correctly across joins

The getPseudoconstantList() function passes an array of params to core BAO::buildOptions,
that list needs to be transformed to match the prefix on the field, in case that field
belongs to a joined entity rather than the main entity.
Civi/Api4/Generic/AbstractAction.php
Civi/Api4/Generic/Traits/DAOActionTrait.php
Civi/Api4/Query/Api4SelectQuery.php
Civi/Api4/Utils/FormattingUtil.php
tests/phpunit/api/v4/Action/ContactGetTest.php