Bug #87184
open
Adding files in content elements opened by reference link modal not possible
Added by Alexander Grein over 5 years ago.
Updated 2 months ago.
Category:
Backend JavaScript
Description
To reproduce:
- Go got Module File > Filelist
- click on a references link of an e.g. image file (needs to have at least one reference, off corse)
- scroll to the bottom of the modal to see the content elements who have references to it and click on the edit pencil
- go to the images tab of the opened content elements and click on "add image" button and try to add an additional image
Expected:
Additional added images should appear in the opened content element of the modal
Result:
Nothing happens. No images will be added.
Files
Related issues
2 (2 open — 0 closed)
I can confirm this issue with 10.0.0-dev, too;
steps to reproduce it
1) add a couple of images to a folder (use filelist module)
2) go to a page
3) create a "text with image" content element
4) images tab > add a relation to one of the images loaded at point 1)
5) go to filelist module > list the files
6) click on the "i" icon of the image that has been added to the CE, scroll to bottom; the "References to this item" should list the content element created at point 3)
7) click on the pencil icon
8) in the popup click on the Images tab and try to add the second image
Results: the relation is not created; the popup to add the image opens, but clicking on the image does nothing. The following JavaScript error is visible in the console:¶
ElementBrowser.js?bust=eee3a2ea3f8cd393828a2d2654a3e79af246dbb5:13 Uncaught TypeError: Cannot read property 'checkUniqueElement' of undefined
at e.executeFunctionByName (ElementBrowser.js?bust=eee3a2ea3f8cd393828a2d2654a3e79af246dbb5:13)
at e.insertElement (ElementBrowser.js?bust=eee3a2ea3f8cd393828a2d2654a3e79af246dbb5:13)
at e.insertElement (BrowseFiles.js?bust=eee3a2ea3f8cd393828a2d2654a3e79af246dbb5:13)
at HTMLAnchorElement.<anonymous> (BrowseFiles.js?bust=eee3a2ea3f8cd393828a2d2654a3e79af246dbb5:13)
at HTMLAnchorElement.dispatch (jquery.js?bust=eee3a2ea3f8cd393828a2d2654a3e79af246dbb5:5183)
at HTMLAnchorElement.elemData.handle (jquery.js?bust=eee3a2ea3f8cd393828a2d2654a3e79af246dbb5:4991)
- Category set to Backend JavaScript
- Status changed from New to Accepted
as workaround -> open the view in a new window works. Would be great, if this workaround is not necessary.
- Related to Bug #86811: can't change file in layer added
- Related to Bug #96297: Can't delete picture from content modal added
The issue is still present on TYPO3 12.4.11 and 13.1.0-dev (latest main); it can be reproduced with the same steps listed on my comment n°1
(but I am not sure if the JS error is still present)
Also available in: Atom
PDF