From b04b92b5d662b2a4788c464a8a82563b668483e1 Mon Sep 17 00:00:00 2001
From: Markus Klein <klein.t3@mfc-linz.at>
Date: Mon, 15 Jul 2013 09:36:34 +0200
Subject: [PATCH] Revert "[BUGFIX] requestUpdate sensitive to spaces"

This reverts commit acd257b53de13b01f8e5efb4cb1e3af8a74260f4

The code has a wrong parentheses order.
Backports are fixed, only master (6.2) affected.

Releases: 6.2
Change-Id: I605730841fa8c86eb275d3d925c5a917049f386b
Reviewed-on: https://review.typo3.org/22311
Reviewed-by: Markus Klein
Tested-by: Markus Klein
---
 typo3/sysext/backend/Classes/Form/Element/TreeElement.php | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/typo3/sysext/backend/Classes/Form/Element/TreeElement.php b/typo3/sysext/backend/Classes/Form/Element/TreeElement.php
index 51c0aff73d69..232631b67abb 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 {
-- 
GitLab