{file_revisions} is capturing the node nid and not node vid.
Instead of $file['nid'] should use $file['data']['vid']

In mm_node.module: around line 371
The correct code should be

  db_query("INSERT INTO {file_revisions} (fid, vid, list, description) VALUES (%d, %d, %d, '%s')", $fid, $file['data']['vid'], 0, basename($file['process_file']));

Comments

arthurf’s picture

Thanks for the catch. I've applied this to the D5 and D6 branches- it took a bit more work on the D6 branch to deal with the auto increment but should be fine now.

arthurf’s picture

Status: Needs review » Closed (fixed)