I think this is probably due to php scope and what variables are always passed by reference.

On export with filefield the files get added to the export properly, but the details are not added to uuid_node.

While iterating over each filefield entry the line '$export->$field_name = array();' clobbers the corresponding entry in the $node object so that the loop never enters since $data['fid'] is always empty.

See attached patch which resolved the issue for us.

Comments

jgraham’s picture

Status: Active » Needs review
StatusFileSize
new876 bytes

Attaching referenced patch.

smokris’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new991 bytes

Also works for us.

(Edit: the attached patch revision is unnecessary; ignore.)