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

feat: remove deleted image from content #7310

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hip3r
Copy link
Contributor

@hip3r hip3r commented Oct 22, 2024

Summary

Added configuration option for removing deleted image from content. Instead of saving empty string.
closes #7120
closes #7186

I wasn't sure that this should be working by default, that's why I extended cms configuration with new option remove_empty_image_field. conected PR for docs will follow.

Implementation is overlapping with logic for #3314 , which inserts default values for all removed entries. The same reason prevented me from saving image value as null or undefined instead of empty string.

Test plan

BEFORE:
image

AFTER:
image

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)
photo_2024-10-22_10-19-18

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