Opened 2 years ago
Closed 13 months ago
#43139 closed defect (bug) (fixed)
Gallery widget preview incorrectly updated after one image gets deleted
Reported by: | afercia | Owned by: | pento |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Widgets | Keywords: | has-screenshots has-patch needs-testing |
Focuses: | javascript | Cc: | |
PR Number: |
Description
To reproduce:
- go in the widgets screen
- create a gallery widget with 7 images and save
- the preview displays 6 images, the last image has an overlay with text "+2"
- go in the media library
- delete one of the images used for the gallery
- go back in the widgets screen and open the gallery widget to see the preview
- the preview displays 5 images, the last image has an overlay with text "+2"
Since there's room available for the 6th image, the image should be displayed and the overlay with text "+2" shouldn't be there. Same happens in the Customizer.
Note: Clicking "Edit Gallery" to make the media modal open and then clicking "Update gallery" rebuilds the preview "fixing" the issue.
Attachments (2)
Change History (8)
Note: See
TracTickets for help on using
tickets.
I have added a patch to fix this issue. I have eliminated media item id which is causing issue.