-
- Downloads
Improve api consistency on custom field creation
Api supports a key 'option_values' by always setting the 'magic' param option_type to 1. v4 doesn't - but creating option values when creating a custom field is desirable. This fixes so that the form still 'opts out' if it passes in '2' but otherwise we create the option values if passed in. Just a teensy bit less magic in the api layer & bao
Showing
- CRM/Core/BAO/CustomField.php 8 additions, 2 deletionsCRM/Core/BAO/CustomField.php
- Civi/Test/Api3TestTrait.php 0 additions, 2 deletionsCivi/Test/Api3TestTrait.php
- api/v3/CustomField.php 0 additions, 7 deletionsapi/v3/CustomField.php
- tests/phpunit/api/v3/CustomFieldTest.php 5 additions, 5 deletionstests/phpunit/api/v3/CustomFieldTest.php
Loading
Please register or sign in to comment