Skip to content

Remove mandatory condition from the PageTreeRoute path property #7879

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

Prokyonn
Copy link
Member

@Prokyonn Prokyonn commented Apr 7, 2025

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related issues/PRs #7842
License MIT

What's in this PR?

In #7842 we introduced an bug for newly created documents with a PageTreeRoute content type. They could not be created anymore, because in the initial state the path property on the root layer is always missing. As this property was mandatory, the validation always threw an error.

Furthermore the PageTreeRoute field type was adjusted, to have undefined instead of null values, when the selected page is removed. Now the validation works properly and it cannot be saved anymore in this state.

Why?

The validation was not working as expected.

@Prokyonn Prokyonn enabled auto-merge (squash) April 7, 2025 17:41
@Prokyonn Prokyonn disabled auto-merge April 8, 2025 06:47
@Prokyonn Prokyonn merged commit ddf58ff into sulu:2.5 Apr 8, 2025
8 of 9 checks passed
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.

2 participants