diff --git a/typo3/sysext/backend/Classes/Form/Element/TreeElement.php b/typo3/sysext/backend/Classes/Form/Element/TreeElement.php index 51c0aff73d692e3ad846f3fbfce596ff47fea09f..232631b67abb7561d9c8167635c6eb85f2e73274 100644 --- a/typo3/sysext/backend/Classes/Form/Element/TreeElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/TreeElement.php @@ -140,12 +140,7 @@ class TreeElement { } // Create a JavaScript code line which will ask the user to save/update the form due to changing the element. // This is used for eg. "type" fields and others configured with "requestUpdate" - if ( - $GLOBALS['TCA'][$table]['ctrl']['type'] - && !strcmp($field, $GLOBALS['TCA'][$table]['ctrl']['type']) - || $GLOBALS['TCA'][$table]['ctrl']['requestUpdate'] - && GeneralUtility::inList(str_replace(' ', '', $GLOBALS['TCA'][$table]['ctrl']['requestUpdate'], $field)) - ) { + if ($GLOBALS['TCA'][$table]['ctrl']['type'] && !strcmp($field, $GLOBALS['TCA'][$table]['ctrl']['type']) || $GLOBALS['TCA'][$table]['ctrl']['requestUpdate'] && GeneralUtility::inList($GLOBALS['TCA'][$table]['ctrl']['requestUpdate'], $field)) { if ($GLOBALS['BE_USER']->jsConfirmation(1)) { $onChange .= 'if (confirm(TBE_EDITOR.labels.onChangeAlert) && ' . 'TBE_EDITOR.checkSubmit(-1)){ TBE_EDITOR.submitForm() };'; } else {