IchHabRecht / content_defender

Define allowed or denied content element types in your backend layouts
GNU General Public License v2.0
81 stars 38 forks source link

Maxitems for column not working in workspaces #152

Open treknuts opened 7 months ago

treknuts commented 7 months ago

Typo3 v11.5.34 PHP v7.4.33 Content Defender v3.4.1

I am experiencing an issue with a column where the maxitems = 1, but it's allowing the addition of a second content element while editing the draft workspace. I get the following error while attempting to add a second content element in the live version:

"Sorry, you didn't have proper permissions to perform this change. Maximum number of allowed content elements (1) reached. 1494605357"

Here is the column configuration:

columns {
  1 {
    name = HERO
    colPos = 3
    allowed {
      CType = allowed_element
    }
    maxitems = 1
  }
}

The allowed section is still working as intended, but it's not following the maxitems configuration.

kitzberger commented 3 weeks ago

I can confirm this issue with TYPO3 11 and EXT:content_defender 3.4.3