Skip to content
Snippets Groups Projects
Commit 005f04a3 authored by Daniel Siepmann's avatar Daniel Siepmann Committed by Christian Kuhn
Browse files

[BUGFIX] Properly handle diff while updating meta data

The existing solution using `array_diff` did not work, as it only
respects values, not a combination with keys.

Given an existing record with some empty values would prevent unsetting
another value with an empty. The same would apply for setting another
value to an existing value.

That's why we change to `array_diff_assoc`, which handles proper diff of
value in combination with key.

Resolves: #103708
Releases: main, 12.4
Change-Id: I36adbc8279e5160c33e8feffcd8741c30c667adc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84000


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 44dfdbe5
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment