flux icon indicating copy to clipboard operation
flux copied to clipboard

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

Open eckonator opened this issue 1 year ago • 1 comments

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

  • TYPO3 v12.4.14
  • Flux v10.0.9
  • PHP 8.2.17 / Nginx 1.25.2

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.

eckonator avatar Apr 11 '24 14:04 eckonator

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

kraemer-igroup avatar Apr 29 '24 13:04 kraemer-igroup

Flux 10.0.10 has been released which contains the mentioned fix.

NamelessCoder avatar May 10 '24 10:05 NamelessCoder