Issue Bug Closed

#91022DataHandler->remapListedDBRecords_procInline should avoid array_map

Benni Mack 04/14/20, 13:07 updated 04/21/20, 10:42

Description

From the review on

https://review.typo3.org/c/Packages/TYPO3.CMS/+/61699/44/typo3/sysext/core/Classes/DataHandling/DataHandler.php#5548

Should we trim and int cast in method `getAutoVersionId()`? AFAICS, the value is retrieved from there and could be handled there correctly also for all other usages. With that, the array_map would not be needed here and also the int cast for the update `$conn->update($tableName, $updateValues, [‘uid’ => (int)$uid])`.

Reviews 1