| When used multiple times in the same form, one AttachmentSelector uploading a new file set that file value for every other AttachmentSelector on the form. Reproduction steps The issue was detected from XCAROUSEL-16, so I'll use that extension here as it's easier to set-up.
- Install extension XCarousel 1.4
- Go to XCarousel space
- Add a new entry
- In the edition, open Slide 1 part and click "Choose an attachment"
- Select an image file which is not already uploaded to the current page
- Click "Upload and select"
- Repeat step 4 to 6 for Slide 2 and 3, with other image file
- Click "Save & View" to close the edit mode and go back to view mode
- At this state, you can view correctly the created carousel
- Re-edit it
- Change slide 1 image, with a new one which has not been uploaded to this page already.
- "Upload and select" and "Save & View"
Result Every slide now uses the same image uploaded for step 11, because all the values for AttachmentSelector have been set to use it. Expected result Only slide 1 should use the image uploaded in step 11. Other AttachmentSelector shouldn't have their value updated. |