Review main Ready for review

98267[TASK] Compare validation error codes as strings in the form editor

Alexander Schnitzler CR +1 V +1 Easy +5 −5 updated 12/01/26, 19:57

Commit message

The form editor matches custom error messages to validation error
codes with parseInt(). Every code is an integer today, so this works.

This change prepares the form editor for validators that report
non-numeric codes. Once ext:form validates with Symfony constraints,
the NotBlank constraint for example reports the UUID code
"c1051bb4-d103-4f74-8988-acbcafc7fdc3". parseInt() turns such a code
into NaN, which never matches: the editor would not find the
existing message and would append a new entry on every keystroke.

Codes are now compared as strings. Behaviour for the existing
integer codes is unchanged.

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/67/98267/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/67/98267/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR +1 Needs a vote
    • Georg Ringer +1
  • Verified V +1 Needs a vote
    • Georg Ringer +1
    • core-ci +1 CI

Merge conflicts 5

Issues 2

Files 4

Review log 45

  1. Alexander Schnitzler uploaded patch set 1 12/01/26, 18:44

  2. core-ci voted on patch set 1 V +1 12/01/26, 18:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116133

  3. Alexander Schnitzler wrote 12/01/26, 18:55

    Topic set to extbase
  4. Alexander Schnitzler commented on patch set 1 12/01/26, 18:55

  5. Georg Ringer voted on patch set 1 CR +1 V +1 12/01/26, 19:57