FluidTYPO3 / flux

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

BUG: PHP Warning: Undefined array key "colPos" in /flux/Classes/Integration/Overrides/BackendLayoutView.php line 118) #2159

Closed eckonator closed 6 months ago

eckonator commented 7 months ago

I have checked that the bug exists in the dev-development branch Yes

I have checked that there are no already open issues or recently closed issues about this bug Yes

Describe the bug

I got for each contentelement in listview this error: PHP Warning: Undefined array key "colPos" in /flux/Classes/Integration/Overrides/BackendLayoutView.php line 118)

Screenshots undefined_array_key_colpos

Additional context This fixed the wrong behavior for me:

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

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

Please merge it to next patch-level.

kraemer-igroup commented 7 months ago

I ran into the same issue, it is already fixed (development branch): issue https://github.com/FluidTYPO3/flux/issues/2151 / pull request https://github.com/FluidTYPO3/flux/pull/2156

NamelessCoder commented 6 months ago

Flux 10.0.10 has been released which contains the mentioned fix.