From dc7fa6a889522c193cbf5cb2cdad6b33a3c7333c Mon Sep 17 00:00:00 2001 From: Benjamin Mack <benni@typo3.org> Date: Sat, 28 Feb 2015 17:56:53 +0100 Subject: [PATCH] [BUGFIX] Make edit button in FormEngine wizard work again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When clicking on the edit button wizard in FormEngine (e.g. when editing a be_group inside the be_user record) then there is a JS error preventing from opening a popup. Resolves: #65415 Relates: #63846 Releases: master Change-Id: Iafac6759054d0e2ce229b34b17b6a5312e1408df Reviewed-on: http://review.typo3.org/37359 Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Frank Nägler <typo3@naegler.net> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../backend/Classes/Form/Element/AbstractFormElement.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php b/typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php index 362508139457..95a2283aa86d 100644 --- a/typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php @@ -326,8 +326,8 @@ abstract class AbstractFormElement { $onlyIfSelectedJS = 'if (!TBE_EDITOR.curSelected(\'' . $itemName . $listFlag . '\')){' . 'alert(' . GeneralUtility::quoteJSvalue($notSelectedText) . ');' . - 'return false; . - }'; + 'return false;' . + '}'; } $aOnClick = 'this.blur();' . -- GitLab