Bug #95390
closedTCEFORM.pages.layout does not allow adding items with integer "names"
0%
Description
In TYPO3 v10 there is only one select-entry on page-edit > Appearance > Frontend Layout [layout] called "Default [0]".
In prior versions it was possible to add new select-entries with this TSConfig:
TCEFORM {
pages {
layout {
altLabels.0 = Default-Renamed
addItems.1 = Test-1
addItems.test2 = Test-2
}
}
}
However that does't work anymore. With this code, the default entry is successfully renamed to "Default-Renamed". The "Test-1" entry does not show up at all, but IMO this was the former expected valid statement. Instead, "Test-2" shows, but can't be selected because the database field-definition for pages.layout is set to INTEGER (storing the string-value resets the field to 0).
Not sure what will be the fix here: maybe the database-migration script should set pages.layout to VARCHAR as well like for the other layout-fields, e.g. pages.backend_layout and tt_content.layout ?
TYPO3 v10.4.21