Custom field admin form reform
authorColeman Watts <coleman@civicrm.org>
Wed, 9 Sep 2020 13:47:23 +0000 (09:47 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 11 Sep 2020 18:29:19 +0000 (14:29 -0400)
commit9b85cd33d84cbd8ca53fe346c8b1fc1cf8c90fe0
treefa05764cdeee07fbe9d8fb31a8cde1d3e5449ef7
parent9aea3ced3b1d81536d8ffe5183086c7d75655ccb
Custom field admin form reform

This overhauls the custom field administration form:
- Gets rid of the difficult-to-use hierarchcal select
- Removes changeFieldType as a separate form
- Allows changing field type on the main form, with improved validation
- Fixes up some metadata
- Improves choosing default values
12 files changed:
CRM/Core/BAO/CustomField.php
CRM/Core/DAO/CustomField.php
CRM/Core/SelectValues.php
CRM/Core/xml/Menu/Admin.xml
CRM/Custom/Form/ChangeFieldType.php [deleted file]
CRM/Custom/Form/Field.php
js/Common.js
templates/CRM/Custom/Form/ChangeFieldType.tpl [deleted file]
templates/CRM/Custom/Form/Field.tpl
tests/phpunit/api/v3/CustomFieldTest.php
tests/phpunit/api/v3/CustomValueTest.php
xml/schema/Core/CustomField.xml