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

Fix condition provider crashing of the admin when no parent is found #7379

Merged

Conversation

Prokyonn
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
License MIT

What's in this PR?

When adding a new block the settings array is undefined, this MR prevents the admin from completely crashing in this case.

Why?

Admin ui should never crash completely due to JS errors

Copy link
Member

@alexander-schranz alexander-schranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to target the 2.4 for this fix as it seems unrelated to 2.6 changes?

@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Apr 24, 2024
@alexander-schranz
Copy link
Member

A test would be nice to be added to avoid regression in the future.

@Prokyonn Prokyonn force-pushed the bugfix/parent-condition-data-provider branch from 8b959b5 to d7950e1 Compare April 24, 2024 11:25
@Prokyonn Prokyonn changed the base branch from 2.6 to 2.4 April 24, 2024 11:25
@alexander-schranz alexander-schranz changed the title Prevent crashing of the admin when no parent is found Fix condition provider crashing of the admin when no parent is found Apr 24, 2024
@alexander-schranz alexander-schranz enabled auto-merge (squash) April 24, 2024 11:26
@Prokyonn
Copy link
Member Author

@alexander-schranz added a test and rebased to 2.4 :)

@alexander-schranz alexander-schranz merged commit cbe8873 into sulu:2.4 Apr 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants