$mimeType = $fileDAO->mime_type;
}
}
+ elseif (empty($value['name'])) {
+ // Happens when calling the API to update custom fields values, but the filename
+ // is empty, for an existing entity (in a specific case, was from a d7-webform
+ // that was updating a relationship with a File customfield, so $value['id'] was
+ // not empty, but the filename was empty.
+ return;
+ }
else {
$fName = $value['name'];
$mimeType = $value['type'];
}
}
+ // Remove option group IDs from fields changed to Text html_type.
+ if ($htmlType == 'Text') {
+ $params['option_group_id'] = '';
+ }
+
// check for orphan option groups
if (!empty($params['option_group_id'])) {
if (!empty($params['id'])) {