2 namespace TYPO3\CMS\Backend\Form\FormDataProvider;
36 $databaseRow = $result[
'databaseRow'];
38 $newRow = $databaseRow;
39 foreach ($result[
'processedTca'][
'columns'] as $fieldName => $fieldConfig) {
41 if (isset($databaseRow[$fieldName])) {
42 $newRow[$fieldName] = $databaseRow[$fieldName];
47 if (!empty($fieldConfig[
'config'][
'eval']) &&
GeneralUtility::inList($fieldConfig[
'config'][
'eval'],
'null')) {
49 array_key_exists($fieldName, $databaseRow)
51 || (array_key_exists(
'default', $fieldConfig[
'config']) && $fieldConfig[
'config'][
'default'] === null)
53 $newRow[$fieldName] = null;
55 $newRow[$fieldName] = (string)$fieldConfig[
'config'][
'default'];
59 $newRow[$fieldName] = (string)$fieldConfig[
'config'][
'default'];
63 $result[
'databaseRow'] = $newRow;