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

Allow creating an EssenceRichtext without a content #2057

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Mar 27, 2021

What is this pull request for?

This worked before adding the sanitization. The problem is that if there
is no content, we pass nil into the sanitizer as options, and that
breaks the sanitizer.

This commit adds a fallback to a Hash for all cases.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

This worked before adding the sanitization. The problem is that if there
is no content, we pass `nil` into the sanitizer as options, and that
breaks the sanitizer.

This commit adds a fallback to a Hash for all cases.
@tvdeyen tvdeyen merged commit 793d324 into AlchemyCMS:main Mar 29, 2021
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