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 picture file format filter #2455

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Apr 6, 2023

What is this pull request for?

Databases may not have a value for image_file_format, returning nil, leading to cryptic errors. Make sure we only return values that are not nil.

Also move the deletable filter into the picture resource filters, as the attachment class does not have this scope.

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

Databases may not have a value for image_file_format, returning
nil, leading to cryptic errors. Make sure we only return values
that are not nil.

Also move the deletable filter into the picture resource filters,
as the attachment class does not have this scope.
@tvdeyen tvdeyen requested a review from a team April 6, 2023 10:09
@tvdeyen tvdeyen merged commit 3616f9f into AlchemyCMS:main Apr 6, 2023
@tvdeyen tvdeyen deleted the fix-picture-file-filter branch April 6, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants