content_defender icon indicating copy to clipboard operation
content_defender copied to clipboard

[BUGFIX] explicitly check if the colPos value is inside an array

Open lukasniestroj opened this issue 3 years ago • 1 comments

I encountered this issue with typo3/cms-core:10.4 and gridelements:^10.

Scenario: I have a backendlayout with restrictions on colPos "0" in my backendlayout. (allowed { CType = text,html } } ) In addition i have a simple gridelement with another restriction (allowed { CType = image } } ) Gridelements passes "-1" as colPos value but this value is parsed as "0" -> this results in wrong restrictions. The dropdown has text, html (wrong) and not image (expected)

lukasniestroj avatar Dec 04 '20 10:12 lukasniestroj

I'm having the same problem.

Setup: Typo3 v11.5.4 in Debug mode php 8.0

tlueder avatar Dec 15 '21 11:12 tlueder