Project

General

Profile

Actions

Bug #91022

closed

DataHandler->remapListedDBRecords_procInline should avoid array_map

Added by Benni Mack over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Category:
DataHandler aka TCEmain
Target version:
Start date:
2020-04-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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])`.

Actions

Also available in: Atom PDF