Index: attachment.module =================================================================== RCS file: /cvs/drupal/contributions/modules/attachment/attachment.module,v retrieving revision 1.20 diff -u -p -r1.20 attachment.module --- attachment.module 2 Aug 2007 17:38:57 -0000 1.20 +++ attachment.module 13 Sep 2007 20:54:37 -0000 @@ -1,5 +1,5 @@ attachments as $key => $attachment) { if ($attachment['filename'] == $new_attachment['filename']) { + $new_attachment['aid'] = $attachment['aid']; $new_attachment['fid'] = $attachment['fid']; $remove_key = $key; }