#107112TCA: onChange on link fields not possible
Description
Given:
- Reload on a link field, eg tt_content/header_link
`$GLOBALS[‘TCA’][‘tt_content’][‘columns’][‘header_link’][‘onChange’] = ‘reload’;`
Expected:
- After a link is chosen in the link browser, the reload modal should be visible and the editor is able to trigger the reload
Actual:
- The reload modal is shown twice and the editor is not able to click on any button
Investigation:
- Configuring an ‘onChange’ option in TCA results in a change-Handler in JavaScript (Build/Sources/TypeScript/backend/form-engine/request-update.ts:38)
- When a link target is select, the FormEngineLinkBrowserAdapter triggers a change event (Build/Sources/TypeScript/backend/form-engine-link-browser-adapter.ts:83) and afterwards the form field value is changed due to FormEngine.processOnFieldChange (Build/Sources/TypeScript/backend/form-engine-link-browser-adapter.ts:88 // ‘typo3-backend-form-update-value’ is triggered) which triggers another change event on that field
- both modals are added to the DOM but setting the z-index on the second modal backdrop fails due to wrong nextElementSibling (Build/Sources/TypeScript/backend/modal.ts:594)
Reviews 2
Related issues 2
History 34
-
Garvin Hicking changed Related to #105249 <span data-processor="relativetime" data-value="2025-07-18T12:22:44+00:00" > 07/18/25, 12:22 </span>
-
Georg Ringer changed Related to #107455 <span data-processor="relativetime" data-value="2025-09-15T06:33:46+00:00" > 09/15/25, 06:33 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97522 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-10T19:59:35+00:00" > 11/10/26, 19:59 </span>
Update:
Since the changes from https://review.typo3.org/c/Packages/TYPO3.CMS/+/86529 it seems that in TYPO3 >= 13.4 no reload is triggered at all.