[FOLLOWUP][BUGFIX] Removing an element from select field must trigger validation 12/40712/3
authorFrank Nägler <typo3@naegler.net>
Mon, 29 Jun 2015 08:05:52 +0000 (10:05 +0200)
committerXavier Perseguers <xavier@typo3.org>
Mon, 29 Jun 2015 08:19:35 +0000 (10:19 +0200)
Fix typo in typeof comparison.

Resolves: #67791
Releases: master
Change-Id: If6ad561f87c7071591c3504ee93c6c1027b290a6
Reviewed-on: http://review.typo3.org/40712
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js

index a2412f0..d9cbe77 100644 (file)
@@ -553,7 +553,7 @@ define('TYPO3/CMS/Backend/FormEngine', ['jquery'], function ($) {
                                // make sure to update the hidden field value when modifying the select value
                                FormEngine.updateHiddenFieldValueFromSelect($listFieldEl, FormEngine.getFieldElement(fieldName));
                                FormEngine.legacyFieldChangedCb();
-                               if (typeof FormEngine.Validation !== 'undefinied' && typeof FormEngine.Validation.validate === 'function') {
+                               if (typeof FormEngine.Validation !== 'undefined' && typeof FormEngine.Validation.validate === 'function') {
                                        FormEngine.Validation.validate();
                                }
                        }