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

Gallery: Add image to existing Gallery overwrites existing Images Selection #36620

Closed
vheinrich opened this issue Nov 18, 2021 · 1 comment
Closed
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images

Comments

@vheinrich
Copy link

Description

When you already added a Gallery Block with some images and want to add more images, the new images arent added to the selection. instead these new images replace the whole former gallery image selection.

Step-by-step reproduction instructions

  1. Add a Gallery with images
  2. Save the post / page
  3. Edit the post and go to the Gallery Block to the Button "Media Library"
  4. Select new images and click "Add to gallery"
  5. At the media library view you just see the new selected images
  6. When you click update Gallery the former images selection is gone and just the new selected images are at the Gallery Block

Screenshots, screen recording, code snippet

https://app.tango.us/app/workflow/08eae919-c50f-4f76-902b-768d2ef8089c

Environment info

  • Wp 5.8.2.
  • Plugins: WP Importer
  • Theme: Twenty Twenty-One

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@annezazu annezazu added [Block] Gallery Affects the Gallery Block - used to display groups of images Needs Testing Needs further testing to be confirmed. labels Nov 19, 2021
@glendaviesnz glendaviesnz removed the Needs Testing Needs further testing to be confirmed. label Nov 22, 2021
@glendaviesnz
Copy link
Contributor

Thanks for reporting this. It looks like it is a duplicate of #33769, which was fixed by #35070 - I just tested on Gutenberg 11.9 and can't reproduce this, so this will be fixed in WP 5.9.

I am closing for now, but if you can reproduce it with 11.9 of Gutenberg installed @vheinrich feel free to re-open this issue.

If you are not able to install the 11.9 plugin for some reason there is a workaround to the problem noted here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images
Projects
None yet
Development

No branches or pull requests

3 participants