Issue Bug Under Review

#107112TCA: onChange on link fields not possible

Nicole Hummel 07/18/25, 10:28 updated 11/10/26, 19:59

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

History 34

  1. Nicole Hummel commented <span data-processor="relativetime" data-value="2025-07-18T10:55:05+00:00" > 07/18/25, 10:55 </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.