dev/core#1025 fix unreleased regression on contact.get with custom fields
authoreileen <emcnaughton@wikimedia.org>
Fri, 7 Jun 2019 00:51:25 +0000 (12:51 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 7 Jun 2019 00:54:38 +0000 (12:54 +1200)
commit697aad03976383019e2762596d13cd1067aa9d20
treedb860b5a646ee7a6157e86b49ab95a59f5c78a5c
parent4741274a9552d061292dbcc5f65b3e5016d46eef
dev/core#1025 fix unreleased regression on contact.get with custom fields

Fixes a bug where contact.get does not retrieve results if a custom field is requested and an activity custom field exists

This bug came about because a recent fix made metadata more consistent but it turns out this class was filtering the
metadata by the passed in  - and then iterating through the metadata. Now it iterates the ids instead.
CRM/Core/BAO/CustomQuery.php
tests/phpunit/CRMTraits/Custom/CustomDataTrait.php
tests/phpunit/api/v3/ContactTest.php