APIv4 - Remove 'contact_type' from Individual,Organization,Household
authorcolemanw <coleman@civicrm.org>
Sat, 30 Dec 2023 15:58:44 +0000 (09:58 -0600)
committercolemanw <coleman@civicrm.org>
Sat, 30 Dec 2023 16:58:48 +0000 (11:58 -0500)
commitf8925cef1fa848cf8e753f9917a308e3fcf69ac4
tree6e41064671d2c68ac86478beb58fa8745d8dc78d
parent4dcf88a7a3daa11d7c06983002e0f1bd217fe099
APIv4 - Remove 'contact_type' from Individual,Organization,Household

This field is irrelevant to these pseudo-entities and shouldn't need to be used at all.

Before: Creating a new SearchKit search for Individual includes Contact Type in the default columns.

After: Now it doesn't, and the field is completely hidden for all but the Contact entity.
Civi/Api4/Generic/BasicGetFieldsAction.php
Civi/Api4/Service/Autocomplete/ContactAutocompleteProvider.php
tests/phpunit/api/v4/Action/GetExtraFieldsTest.php
tests/phpunit/api/v4/Action/GetFieldsTest.php