CRM-21738 fix transfer of view_only custom data.
authoreileen <emcnaughton@wikimedia.org>
Tue, 6 Feb 2018 05:36:02 +0000 (18:36 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 8 Feb 2018 01:41:05 +0000 (14:41 +1300)
commitca38a45bfdc5ffe11b1cf9768f98debc40d02301
treedf3fbf1aa695833337335f5ee982cec6830af9df
parent239956f274f49c6153753191904531f4f21db939
CRM-21738 fix transfer of view_only custom data.

View only custom data was not being transferred during the merge despite code in order
to achieve that. The reason was the metadata was being used from the (hateful)
getGroupTree function, but without passing $permissions = FALSE it was not
returning viewOnly fields. Note that this metadata retrieval function is a bad place for
filtering - they should be in separate functions.
CRM/Dedupe/Merger.php
tests/phpunit/api/v3/JobTest.php