Afform - Switch getFields mode to create
authorColeman Watts <coleman@civicrm.org>
Fri, 12 Aug 2022 16:05:48 +0000 (12:05 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 12 Aug 2022 16:05:52 +0000 (12:05 -0400)
commitad0e2e12b0fe49858d8b2f83546fcc9816791bf3
treee930b2a286ce30e801c51b9d74080c99ca488279
parentdbd96802e057ecda85e6a1acb6f71ddf03d8e70c
Afform - Switch getFields mode to create

This was switched to 'update' to include the 'id' field, but that's no longer
missing from getFields for the 'create' action, and other entities have create-only
fields (such as CiviCase) that ar missing for the 'update' action.
ext/afform/admin/Civi/Api4/Action/Afform/LoadAdminData.php
ext/afform/core/Civi/Afform/AfformMetadataInjector.php