QUERY_FORMAT_WILDCARD = 1,
QUERY_FORMAT_NO_QUOTES = 2,
+ /**
+ * No serialization.
+ */
+ SERIALIZE_NONE = 0,
/**
* Serialized string separated by and bookended with VALUE_SEPARATOR
*/
*/
public static function fieldSerialization() {
return [
+ CRM_Core_DAO::SERIALIZE_NONE => 'none',
CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND => 'separator_bookend',
CRM_Core_DAO::SERIALIZE_SEPARATOR_TRIMMED => 'separator_trimmed',
CRM_Core_DAO::SERIALIZE_JSON => 'json',
];
$daoInfo = new ReflectionClass('CRM_Core_DAO');
foreach ($daoInfo->getConstants() as $constant => $val) {
+ if ($constant === 'SERIALIZE_NONE') {
+ continue;
+ }
if ($constant === 'SERIALIZE_JSON' || $constant === 'SERIALIZE_PHP') {
$constants[] = [$val, array_merge($simpleData, $complexData)];
}
];
$customField = $this->callAPIAndDocument('custom_field', 'create', $params, __FUNCTION__, __FILE__);
- $params['id'] = $customField['id'];
- $customField = $this->callAPISuccess('custom_field', 'create', $params);
+ $customField['label'] = 'Name2';
+ $customFieldEdited = $this->callAPISuccess('custom_field', 'create', $customField);
- $this->assertNotNull($customField['id']);
+ $this->assertNotNull($customFieldEdited['id']);
}
/**