This is a reproduce step.
1. Add new content type with Image and enable translation. (In this case I use 'Test')
2. Create node and add image to this.
3. See you file_usage table. You will see count column is 1.
3. Content types -> Manage Fields -> Test, Edit on Image field, Click Enable translation
4. Check Enable field synchronization.
4. See your file_usage table. You will see count column is 5.
5. Edit node and save.
6. See your file_usage table again. Count will be decrease by 1.
7. Edit node and 5 times, row in file_usage will be disappear, file_managed either.
8. At node page, you will see empty image.
Please see attached for more information
Comment | File | Size | Author |
---|---|---|---|
#6 | et-synced_images_wiped-1959614-6.patch | 904 bytes | plach |
Comments
Comment #1
plachThanks for the detailed report. Can you try the patch at #1141912-26: Changing node language by moving down language list deletes files in file field? it's not exactly related but I suspect the underlying reason might be the same.
Comment #2
rutcreate CreditAttribution: rutcreate commentedWhich one should I use? A comment you send do not pass a test but before one is passed.
Comment #3
rutcreate CreditAttribution: rutcreate commentedIt does not work for me for both patch but thanks for your help.
Comment #4
plachOk, I'll try to have a look to this as soon as I have a minute and see if I can replicate the error. I suspect I'm seeing this too in a project of mine.
Comment #5
plach@rutcreate:
Working on this: how many languages do you have on your site?
Comment #6
plachThe attached patch should fix the issue.
Comment #7
plach#6 seems to be fixing the issue on my project. I'll commit it soon, unless failures are reported.
Comment #8
plachCommitted and pushed.
Comment #10
plachRelated issue: #2055491: Synced image fields cannot be emptied.