Bug #96009
closedinputType=inputLink not working anymore in IRRE
100%
Description
Since TYPO3 v11.5.3 the link selection modal does not work anymore for a field in IRRE with type="input" and inputType="inputLink".
- When clicking on the link button, the modal is opened with activated overlay, so nothing can be done. Only a reload of the backend helps then.
- A click on the "Toggle link explanation" button does nothing.
In both cases no JavaScript error occurs in the console. With TYPO3 v11.5.2 everything worked as expected.
My TCA:
'link' => [
'exclude' => true,
'label' => 'Link',
'config' => [
'type' => 'input',
'renderType' => 'inputLink',
'size' => 50,
'max' => 1024,
'eval' => 'trim,required',
'fieldControl' => [
'linkPopup' => [
'options' => [
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel',
'blindLinkOptions' => 'file,folder,telephone,mail',
],
],
],
'softref' => 'typolink',
],
],
Files
Updated by Oliver Hader about 3 years ago
Maybe related to https://review.typo3.org/c/Packages/TYPO3.CMS/+/72154
Can you please post the JSON that is returned when adding a new inline element?
Updated by Chris Müller about 3 years ago
Here it is:
ajax[context]: {"config":"{\"type\":\"inline\",\"allowed\":\"tx_myext_button\",\"foreign_table\":\"tx_myext_button\",\"foreign_sortby\":\"sorting\",\"foreign_field\":\"parent\",\"foreign_table_field\":\"parenttable\",\"size\":5,\"minitems\":0,\"maxitems\":5,\"appearance\":{\"collapseAll\":true,\"expandSingle\":true,\"levelLinksPosition\":\"bottom\",\"useSortable\":true,\"showPossibleLocalizationRecords\":true,\"showSynchronizationLink\":true,\"enabledControls\":{\"info\":false,\"new\":true,\"dragdrop\":true,\"sort\":true,\"hide\":true,\"delete\":true,\"localize\":true}},\"inline\":{\"parentSysLanguageUid\":0,\"first\":2355,\"last\":2355},\"originalReturnUrl\":\"\\/typo3\\/record\\/edit?token=4773b188d7295b56ff85a2b43f104d7fef4ccd0f&edit%5Bpages%5D%5B15%5D=edit&returnUrl=%2Ftypo3%2Fmodule%2Fweb%2Flayout%3Ftoken%3D7c4b5644516381421704c60efed394f610a6b83c%26id%3D15&route=%2Frecord%2Fedit\"}","hmac":"de2e5ed2b4cf4212378099d748c4173709e39893"}
Updated by Oliver Hader about 3 years ago
Thx. Bisected that to 08669c3fbfb6b042e02d1ba432c6e86d4d2aba2d of issue #95954
Updated by Oliver Hader about 3 years ago
- Related to Task #95954: Reduce inline JavaScript in FormEngine AJAX responses added
Updated by Oliver Hader about 3 years ago
- Subject changed from Regression: inputType=inputLink not working anymore in IRRE to inputType=inputLink not working anymore in IRRE
- Status changed from New to Accepted
Updated by Oliver Hader about 3 years ago
Another way to test/reproduce:
- create new content element of "text with images" (or "images")
- add new image in corresponding tab
- click link icon in that new file reference inline element
- find modal overlay to being removed on initialization (see screenshot)
Updated by Gerrit Code Review about 3 years ago
- Status changed from Accepted 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/c/Packages/TYPO3.CMS/+/72214
Updated by Oliver Hader about 3 years ago
Okay, that was a stupid thing... after refactoring the mentioned change, RequireJS modules for corresponding form fields were initialized twice - which lead to side-effects loading the Modal dialog. This show, that FormEngine.js
et al are not resilient enough against those API calls...
Updated by Gerrit Code Review about 3 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/c/Packages/TYPO3.CMS/+/72214
Updated by Georg Ringer about 3 years ago
- Has duplicate Bug #95998: Can't add a link on an image with link browser added
Updated by Oliver Hader about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0cb761cba6a85111617c9fd1b332553f29eb6d22.
Updated by Oliver Hader about 3 years ago
- Has duplicate Bug #96027: FlexForm: Typolink link browser/wizard doesn not open in popup added
Updated by Oliver Hader about 3 years ago
- Has duplicate deleted (Bug #96027: FlexForm: Typolink link browser/wizard doesn not open in popup)
Updated by Oliver Hader about 3 years ago
- Related to Bug #96027: FlexForm: Typolink link browser/wizard doesn not open in popup added
Updated by Georg Ringer almost 3 years ago
- Has duplicate Bug #96085: LINK Browser in Inline Records for fields with renderType "inputLink" no longer works correctly. added
Updated by Georg Ringer almost 3 years ago
- Has duplicate Bug #96088: Linkwizard in IRRE element appears behind overlay added
Updated by Georg Ringer almost 3 years ago
- Has duplicate Bug #96175: Link Wizard modal conflict at inline records added
Updated by Nikita Hovratov almost 3 years ago
- Has duplicate Bug #96090: Broken LinkWizard for new FileReference added