Review main Merged

76927[BUGFIX] Ensure inserted json data is properly checked in DataHandler

Stefan Bürk CR +2 V +2 Easy +9 −0 updated 12/05/22, 22:35

Commit message

Native JSON field support along with a custom TCA user dbType
`json` has been added as new features. This has been used to
provide a more dynamic configuration in `ext:reactions` for
the field variable config.

Backend uses DataHandler to persist the data to the database,
and checks if the retrieved value matches the to-persist value.

At least MySQL seems to save provided array data by sorting it
by key, thus the check before-after does not match, because of
different key orderings. As it may be hard to ensure that
beforehand, this change sorts the persisted and the provided
array recursivly before comparing them. This ensures that at
least the "same" data is written to the database.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1