Synchronization of file attachments for nodes of some content type seems to work right when you create one node with attachments, and then translate it into another language.
Problems begin when you edit nodes that already exist (add more attachmens, enable/disable listing and so on).
When you turn on file listing for a node in one language, it turns out that listing of this file for the translated node is turned off, and vice versa. So, after some edits, you are no longer able to list all attached files for both nodes (unless you manually change 0's to 1's in the upload.list database field).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | list_attribute.patch | 927 bytes | nkoponen |
| #3 | attachment_list_attribute.patch | 688 bytes | nkoponen |
Comments
Comment #1
thomas23@drupal.org commentedACK
If I turn off attachment synching in according content-type (page in my case) I can choose which attachments to list just fine and more importantly attachment lists show in both translation nodes. Until I do so the attachment list of the translation node (say lang A) is toggled off if I edit lang B translation node and vice versa (I don't have to do anything in the attachment settings section of the node).
If in content type I switch off attachment synch file lists are shown in both translation nodes; if it's on the list is only shown in the one edited the latest.
Edit: So a workaround is to
Cheers.
Comment #2
thomas23@drupal.org commentedI now can confirm that the problem seams only to arrise when existing attachments are changed and sync is enabled for the according content type. When "reattaching" all files, i.e. delete all, save node, attach new, the sync is done perfectly.
Cheers.
Comment #3
nkoponen commentedAttached is a patch that fixes the list attribute problem.
Comment #4
nkoponen commentedForgot to change the status of the issue to "code needs review". This comment belongs to the patch submitted earlier.
Comment #5
nkoponen commentedAttached is an improved patch concerning the list attribute in attachments.
Comment #6
jose reyero commentedFixed, thanks