Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maxitems for column not working in workspaces #152

Open
treknuts opened this issue Feb 22, 2024 · 1 comment
Open

Maxitems for column not working in workspaces #152

treknuts opened this issue Feb 22, 2024 · 1 comment

Comments

@treknuts
Copy link

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
Copy link

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

  • It's currently possible to add a 2nd CE via a draft workspace and publish it successfully to the live workspace. Which should not be possible.
  • But it is not possible though to edit the 1st CE in a draft workspace. Then the exception 1494605357 is being thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants