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

BUGFIX: Allow adding first asset collection again #3622

Merged

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Feb 24, 2022

What I did

This fix resolves a regression in 0143d67 (#3481)
which prevents adding an asset collection if there was none before
as the form was not rendered.

How I did it

Move collection creation form outside of condition which checks for the existence of any least one collection.

How to verify it

Try to add a new collection inside the media module in a fresh Neos without any collections

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch

This resolves a regression in 0143d67
which prevents adding an asset collection if there was none before
as the form was not rendered.
Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

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

Looks good, thanks a lot!

Copy link
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

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

by 📚

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

Successfully merging this pull request may close these issues.

4 participants