Skip to content

[BUGFIX] Fix maxitems count by correcting version state check#186

Open
gmartino27 wants to merge 1 commit into
IchHabRecht:mainfrom
gmartino27:bugfix/max-items-clean
Open

[BUGFIX] Fix maxitems count by correcting version state check#186
gmartino27 wants to merge 1 commit into
IchHabRecht:mainfrom
gmartino27:bugfix/max-items-clean

Conversation

@gmartino27

Copy link
Copy Markdown

Summary

This PR fixes the maxitems counting logic in ContentRepository by correcting the VersionState comparison used while iterating workspace-overlaid tt_content rows.

The previous condition could evaluate incorrectly and include records that should be ignored (for example delete placeholders), which leads to wrong item counts for a column and can affect maxitems enforcement.

Change

  • adjust the VersionState check in:
    • Classes/Repository/ContentRepository.php

This is an intentionally minimal fix (single logical correction) and does not change public configuration or behavior outside the faulty counting condition.

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

Successfully merging this pull request may close these issues.

1 participant