Review 13.4 Merged

86630[BUGFIX] Ensure integer type for 'length' DBAL column definition

Andreas Kienast CR +2 V +2 Easy +1 −1 updated 10/23/24, 06:29

Commit message

In case TCA has been set using a string for a key like 'max'
on a type=input definition, the DefaultTcaSchema would pass
that string along to the `addColumn` DBAL call.

This patch will ensure integer type casting on the relevant
TCA value as convenience for backwards compatibility
and to prevent casual errors when having TCA like:

```
'creditpoints_gifts' => [
  'exclude' => 1,
  'label' => 'Gifts',
  'config' => [
    'type' => 'input',
    'size' => '10',
    'max' => '10',
    'default' => 0,
  ],
],,
```

Note that all other occurences of `addColumn` in current
DefaultTcaSchema have been checked as well, and do not
need type-casting.

Review

  • Code review CR +2 Done
    • Andreas Kienast +2
  • Verified V +2 Done
    • Andreas Kienast +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Andreas Kienast commented on patch set 1 10/23/24, 06:14

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 10/23/24, 06:27 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/68423

  3. Andreas Kienast voted on patch set 1 CR +2 V +2 10/23/24, 06:28

  4. Andreas Kienast merged patch set 2 10/23/24, 06:29