[BUGFIX] Open element browser in sys_action 97/39897/2
authorNicole Cordes <typo3@cordes.co>
Tue, 2 Jun 2015 13:25:09 +0000 (15:25 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 5 Jun 2015 16:32:04 +0000 (18:32 +0200)
If you try to add a new backend user with a sys_action task, you can't
select any db mount point due to a JavaScript error. This patch ensures
all FormEngine scripts are loaded properly.

Resolves: #67239
Releases: 6.2
Change-Id: I93cdb6314c9240f20fa6c2bd00a35dda639a8054
Reviewed-on: http://review.typo3.org/39897
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/sys_action/Classes/ActionTask.php

index c1de754..e4d7ddd 100644 (file)
@@ -273,7 +273,8 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
                $this->JScode();
                $loadDB = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
                $loadDB->start($vars['db_mountpoints'], 'pages');
-               $content .= '<form action="" method="post" enctype="multipart/form-data">
+               $this->t3lib_TCEforms->printNeededJSFunctions();
+               $content .= '<form action="" method="post" enctype="multipart/form-data" name="' . $this->t3lib_TCEforms->formName . '">
                                                <fieldset class="fields">
                                                        <legend>' . $GLOBALS['LANG']->getLL('action_t1_legend_generalFields') . '</legend>
                                                        <div class="row">