Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Quiet

96364[FEATURE] Allow disabling duplication of forms

Josua Vogel CR 0 V -1 Hard +545 −52 updated 10/05/26, 14:38

Commit message

Forms shipped by extensions often rely on custom finishers or other
configuration the form editor does not provide. Editors could still
duplicate them in the form manager, even though such a copy is not
meant to exist.

A form definition can now set the top-level option
`disableDuplication: true`. The form manager hides the duplicate
action for such forms, and the duplicate endpoint rejects the request
server side. The form editor offers the option as a checkbox on the
form element.

Database forms mirror the option into the new read-only column
form_definition.disable_duplication, so the form listing does not
need to read the form configuration.

BeforeFormIsDuplicatedEvent now implements StoppableEventInterface
and carries a public $preventDuplication property, so listeners can
abort a duplication, like BeforeFormIsDeletedEvent does for deletion.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/64/96364/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/64/96364/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V -1 Blocked
    • core-ci -1 CI

Issues 1

Files 26

Show 6 more files

Review log 23

  1. Josua Vogel uploaded patch set 1 10/05/26, 14:26

  2. Josua Vogel marked it work in progress 10/05/26, 14:27

  3. core-ci voted on patch set 1 V -1 10/05/26, 14:38 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110122