Ensure APIv3 EntityRef fields always return the value of the `id_field`.
authorColeman Watts <coleman@civicrm.org>
Wed, 30 Jun 2021 20:50:45 +0000 (16:50 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 30 Jun 2021 20:50:45 +0000 (16:50 -0400)
commite13640cc80fbeeb4b9a6724e8a638bb1c70d1f53
treedc3a7c4b7309fc587d4e9c870b92a8d51608177d
parent8c5bb56dd5ff32e24c90edad65dc2625547a0368
Ensure APIv3 EntityRef fields always return the value of the `id_field`.

Usually it's safe to assume the `id_field` === "id", which is automatically returned
by APIv3. However in the case of looking up records by name, etc. we must ensure that value
gets returned.
api/v3/Activity.php
api/v3/Campaign.php
api/v3/Event.php
api/v3/MembershipType.php
ext/afform/core/api/v3/Afform.php