Review 14.3 Merged

95634[BUGFIX] Keep unique values untouched in workspaces

Benni Mack CR +2 V +2 Normal +38 −29 updated 09/04/26, 09:17

Commit message

A record edited in a workspace is a versioned record. It lives on
the same pid as its live counterpart and starts out with exactly
the same values.

The uniqueness lookup behind the "eval" keywords "unique" and
"uniqueInPid" of type=input and type=email fields did not know
about that: it counted the live record as a collision of its own
version, so a counter was appended on every single save, even when
the editor never touched the field. Creating the version alone was
already enough, since insertNewCopyVersion() passes the complete
field array through checkValue().

The lookup now ignores the live counterpart of the record being
checked, just like SlugHelper::applyRecordConstraint() has always
done for type=slug fields.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 4

Review log 34

  1. Benni Mack commented on patch set 1 09/04/26, 08:53

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/04/26, 09:16 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107835

  3. Benni Mack voted on patch set 1 CR +2 V +2 09/04/26, 09:17

  4. Benni Mack merged patch set 2 09/04/26, 09:17