I was a bit confused to see that whenever I added a new attachment it didn't show me my title (but instead the filename). Only after I used the 'Change title/desc' button.
So I changed the function 'attachment_add':

$new_attachment['title'] = $node->attachment_title; //$file->filename;
$new_attachment['description'] = $node->attachment_description; //'';

regards,
Marco

CommentFileSizeAuthor
#2 attachment.module14.85 KBmhweb

Comments

drewish’s picture

Status: Fixed » Postponed (maintainer needs more info)

Marco, I'm not sure what you were trying to change? If you could post a patch it'd be easier to figure out what you're trying to do and get the change made so other 4.6 users could benefit. If you need help creating a patch check out: http://drupal.org/diffandpatch

mhweb’s picture

StatusFileSize
new14.85 KB

Ok, here's my patch attached.
It's not a big issue but it's better to immediately set the title and description of the uploaded attachment to the ones the user has filled in.

regards,
Marco

telcontar’s picture

That's not a patch ... read http://drupal.org/diffandpatch on how to create and submit a patch.