SearchKit - Include custom group title with custom field label
authorColeman Watts <coleman@civicrm.org>
Sun, 21 Mar 2021 22:11:59 +0000 (18:11 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 21 Mar 2021 23:44:19 +0000 (19:44 -0400)
commitb751bdc977790755d22823a83230c20cbb2a228c
tree358f6f3e1aea15c945d8f24d12d2742047614da7
parent5271fc9e4d6c4f1c195e8b0671c9e4d7b4c11b97
SearchKit - Include custom group title with custom field label

This makes it easier to tell custom fields apart in SearchKit when they have similar names to core or other custom fields.

This takes advantage of API4.getFields returning both a "title" and "label" attribute.
This keeps "title" the same while appending group title to "label".
Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php
Civi/Api4/Service/Spec/SpecFormatter.php
Civi/Api4/Service/Spec/SpecGatherer.php
tests/phpunit/api/v4/Spec/SpecFormatterTest.php