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

Not able to empty imagelist field #2606

Closed
peterboorsma opened this issue Jun 1, 2021 · 1 comment
Closed

Not able to empty imagelist field #2606

peterboorsma opened this issue Jun 1, 2021 · 1 comment
Labels
🐛 tag: bug This is a bug.

Comments

@peterboorsma
Copy link
Contributor

If you have a record with an imagefield it's not possible to empty the list of images. Frontend returns placeholder.png image.

My contenttype field:

        gallery:
            type: imagelist
            label: Slideshow
            alt: true
            extensions: [ gif, jpg, png ]

My template:

{% if record.gallery is defined and record.gallery|length > 0 %}
{% for image in record.gallery %}
    <img src="{{ thumbnail(image, 600, 400, fit='c') }}">
{% endfor %}
{% endif %}
  1. I add an image to the imagelist in the backend by clicking "Add new image" in the imagelist field.
  2. Oh, I don't need an imagelist here > Click "Remove"
  3. Save my record
  4. Open the record in a browser, the placeholder.png shows up

I'm unable to completely empty my imagefield


Bolt 5.0.0 beta 7 - Nothing to see here!

System Information:

Install type: Packaged distribution
Database: mysql 5.7.32 - 127.0.0.1 via TCP/IP
PHP version: 7.4.15
Symfony version: v5.3.0
Operating System: Darwin - 20.5.0
Assets version: 4.99.7
@bobdenotter
Copy link
Member

Closed by #2743

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 tag: bug This is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants