Add 'readonly' attribute to schema fields
authorColeman Watts <coleman@civicrm.org>
Thu, 18 Feb 2021 15:41:28 +0000 (10:41 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 18 Feb 2021 15:41:28 +0000 (10:41 -0500)
commit347454480bddfc391be4de5be14a32cdbc755542
treeee823d3f0bc6e4b5e91c75273cca4bbc48e42443
parentb5145c150ebc5ea20fd2c8cd8ba128dff0c6d74f
Add 'readonly' attribute to schema fields

For core fields, applies to primaryKey fields and fields tagged <readonly>.
For custom fields, this comes through via the 'is_view' property.

This will help autogenerated forms to know whether a field is appropriate to show to the user.
CRM/Contact/DAO/Contact.php
CRM/Core/CodeGen/Specification.php
Civi/Api4/Generic/BasicGetFieldsAction.php
Civi/Api4/Service/Spec/FieldSpec.php
Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php
Civi/Api4/Service/Spec/SpecFormatter.php
ext/search/ang/crmSearchActions/crmSearchActionUpdate.ctrl.js
xml/schema/Contact/Contact.xml
xml/templates/dao.tpl