Bug #72242

Using TCA type group with internal_type folder throws JS errors in backend

Added by Felix Nagel over 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend API
Target version:
-
Start date:
2015-12-15
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

With 7.6.1 the removal of the folder selection feature* has been reverted. Sadly this once stable feature still seems to have issues.

Steps to reproduce:

  • Open the "TBE folder selector" popup (click folder icon next to input)
  • Click any folder within the folder tree (left side)
  • Click on the folder item you just clicked (right side) to choose the folder
  • JS alert with "Error - reference to main window is not set properly!"
  • PopUp closes - nothing has been selected

It will work if you open the popup again and choose the now already opened folder on the right side. Seems the interaction with the tree breaks the functionality.

Another JS erros pops up when trying to expand the tree using the arrow icons: "Uncaught ReferenceError: Tree is not defined"
Not sure if this the origin error or a follow-up as the reference is lost.

This bug report is a follow-up to #70449


Related issues

Related to TYPO3 Core - Bug #70449: TCA type group with internal_type folder has been removed Closed 2015-10-06
Related to TYPO3 Core - Bug #72369: "TBE folder selector" pop-up folder tree broken Closed 2015-12-21

Associated revisions

Revision a0ff74b7 (diff)
Added by Oliver Hader over 4 years ago

[BUGFIX] JavaScript error on selecting a folder in element browser

If the TCA type group/folder is used, FormEngine renders a field to
select a particular folder. If a different folder is selected in the
tree in the element browser, the initial parameters are not passed
along which leads to the situation, that the target field name is
not know anymore.

Resolves: #72242
Releases: master
Change-Id: I5745f0c022cf63ab9e9de76ee76119dfbd801bea
Reviewed-on: https://review.typo3.org/45382
Reviewed-by: Wouter Wolters <>
Reviewed-by: Felix Nagel <>
Tested-by: Felix Nagel <>
Reviewed-by: Andreas Fernandez <>
Tested-by: Andreas Fernandez <>

History

#1 Updated by Felix Nagel over 4 years ago

Please somebody update the title. Should be "... errors in backend". Sorry...

#2 Updated by Anja Leichsenring over 4 years ago

  • Subject changed from Using TCA type group with internal_type folder throws JS errors in to Using TCA type group with internal_type folder throws JS errors in backend

#3 Updated by Oliver Hader over 4 years ago

  • Status changed from New to Accepted

Confirmed for 7.6.1

#4 Updated by Oliver Hader over 4 years ago

  • Category set to Backend API
  • Status changed from Accepted to In Progress
  • Assignee set to Oliver Hader

#5 Updated by Gerrit Code Review over 4 years ago

  • Status changed from In Progress 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/45382

#6 Updated by Felix Nagel over 4 years ago

Patch fixes the selection issue. Tree issue seems like a separate issue.

#7 Updated by Oliver Hader over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#8 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF