diff --git a/typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php b/typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php index f085e8f31ec8fb8b34b2ac4b8b177420d891e137..c73729a6518b17d57539b4d735895b7b9c943079 100644 --- a/typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php +++ b/typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php @@ -111,8 +111,7 @@ class FlexFormElementContainer extends AbstractContainer $fakeParameterArray['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] = str_replace($originalFieldName, $fakeParameterArray['itemFormElName'], $fakeParameterArray['fieldChangeFunc']['TBE_EDITOR_fieldChanged']); } } - // @todo: is that a bug? name and id should usually be of different form - $fakeParameterArray['itemFormElID'] = $fakeParameterArray['itemFormElName']; + $fakeParameterArray['itemFormElID'] = $parameterArray['itemFormElID'] . '_' . preg_replace('/[^a-zA-Z0-9_-]/', '_', $flexFormFieldName); if (isset($flexFormRowData[$flexFormFieldName]['vDEF'])) { $fakeParameterArray['itemFormElValue'] = $flexFormRowData[$flexFormFieldName]['vDEF']; } else {