FluidTYPO3 / flux

TYPO3 extension Flux: Dynamic Fluid FlexForms
https://fluidtypo3.org
145 stars 214 forks source link

TYPO3 12.4.10 - Multilingual - Undefined array key "colPos" #2151

Closed Apen closed 8 months ago

Apen commented 9 months ago

I have a large website with a lot of languages. Sometimes, when i edit a content, i have the following error message

(PHP Warning: Undefined array key "colPos" in xxx/Classes/Integration/Overrides/BackendLayoutView.php line 118

It happen when "BackendLayoutView->colPosListItemProcFunc" is called by the core with a "row" with only uid/pid. Could it be possible to add a default value to this line (BackendLayoutView.php line 118) :

$parentRecordUid = ColumnNumberUtility::calculateParentUid((integer) $this->record['colPos']);

like

$parentRecordUid = ColumnNumberUtility::calculateParentUid((integer) ($this->record['colPos'] ?? 0));

Except that, everything works fine in backend/frontend.

Thanks

Apen commented 8 months ago

PR here https://github.com/FluidTYPO3/flux/pull/2156

NamelessCoder commented 8 months ago

Solved by https://github.com/FluidTYPO3/flux/pull/2156