[BUGFIX] JS: Add missing dependency on FormEngineValidation 68/52168/2
authorMarkus Klein <markus.klein@typo3.org>
Sun, 26 Mar 2017 17:54:42 +0000 (19:54 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Mon, 27 Mar 2017 12:51:11 +0000 (14:51 +0200)
The code must not use the nested FormEngine.Validation module
without specifying a dependency on this module as well.

Releases: master, 7.6
Resolves: #80459
Change-Id: Iaea325a679ac8bae116b33b912e3e9e2f7cd9163
Reviewed-on: https://review.typo3.org/52168
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Kay Strobach <typo3@kay-strobach.de>
Tested-by: Kay Strobach <typo3@kay-strobach.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineFlexForm.js
typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Editor/Editor.js

index 458b3d1..0c32631 100644 (file)
@@ -22,7 +22,8 @@
  */
 define(['jquery',
                'TYPO3/CMS/Backend/Modal',
-               'TYPO3/CMS/Backend/FormEngine'
+               'TYPO3/CMS/Backend/FormEngine',
+               'TYPO3/CMS/Backend/FormEngineValidation'
           ], function ($, Modal) {
 
        /**
index f485c41..a16039e 100644 (file)
@@ -184,7 +184,7 @@ class RichTextElement extends AbstractFormElement
         return 'function(CKEDITOR) {
                 ' . $externalPlugins . '
                 CKEDITOR.replace("' . $fieldId . '", ' . json_encode($configuration) . ');
-                require([\'TYPO3/CMS/Backend/FormEngine\'], function(FormEngine) {
+                require([\'TYPO3/CMS/Backend/FormEngine\',\'TYPO3/CMS/Backend/FormEngineValidation\'], function(FormEngine) {
                     CKEDITOR.instances.' . $fieldId . '.on(\'change\', function() {
                         CKEDITOR.instances.' . $fieldId . '.updateElement();
                         FormEngine.Validation.validate();
index b079d8b..205c511 100644 (file)
@@ -30,7 +30,9 @@ define(['TYPO3/CMS/Rtehtmlarea/HTMLArea/UserAgent/UserAgent',
        'TYPO3/CMS/Rtehtmlarea/HTMLArea/Editor/TextAreaContainer',
        'TYPO3/CMS/Rtehtmlarea/HTMLArea/Editor/StatusBar',
        'TYPO3/CMS/Backend/FormEngine',
-       'TYPO3/CMS/Backend/Notification'],
+       'TYPO3/CMS/Backend/Notification',
+       'TYPO3/CMS/Backend/FormEngineValidation'
+       ],
        function (UserAgent, Util, Ajax, Dom, Event, Selection, BookMark, Node, Typo3, Framework, Toolbar, Iframe, TextAreaContainer, StatusBar, FormEngine, Notification) {
 
        /**