Bug #76868
closedFolder selector (flexform) javascript error: Tree is not defined
100%
Description
I've added a folder selector to flexform. If a user now click on the folder selector button the popup opens with the tree but the tree cannot be opened/closed because there is JavaScript error:
Uncaught ReferenceError: Tree is not defined
Flexform configuration:
<settings.folderFilter> <TCEforms> <label>Folders</label> <config> <type>group</type> <internal_type>folder</internal_type> <maxitems>9999</maxitems> <size>10</size> </config> </TCEforms> </settings.folderFilter>
If I change the internal_type to file it's working but we want folders instead of files.
Updated by Markus Blaschke about 8 years ago
In file typo3/sysext/recordlist/Classes/Browser/FolderBrowser.php:
/** * @return void */ protected function initialize() { parent::initialize(); $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Recordlist/BrowseFolders'); $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/LegacyTree', 'function() { DragDrop.table = "folders"; }'); }
the LegacyTree fixes the issue but the ajax call is still not working.
Maybe it's not the right javascript?!
Updated by Gerrit Code Review about 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49226
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49226
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49312
Updated by Wouter Wolters about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 33ced56214c9025e4efce8a9f2031f76d78409cb.