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).

Comments

thomas23@drupal.org’s picture

ACK

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

  1. create a new node with attachment sych on in workflow settings of according content type
  2. attach files
  3. create translation; now attachment list will only show on the translation node
  4. flag attachment sych off in workflow settings again
  5. now edit the node where the attachment list is missing and select the files to show and save; lists should show in both translation nodes now.

Cheers.

thomas23@drupal.org’s picture

I 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.

nkoponen’s picture

StatusFileSize
new688 bytes

Attached is a patch that fixes the list attribute problem.

nkoponen’s picture

Status: Active » Needs review

Forgot to change the status of the issue to "code needs review". This comment belongs to the patch submitted earlier.

nkoponen’s picture

Version: 6.x-1.0-beta3 » master
StatusFileSize
new927 bytes

Attached is an improved patch concerning the list attribute in attachments.

jose reyero’s picture

Status: Needs review » Fixed

Fixed, thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.