changed 'title' and 'description' back to $node values
mhweb - January 12, 2007 - 17:07
| Project: | Attachment |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | mhweb |
| Status: | postponed (maintainer needs more info) |
Description
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

#1
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
#2
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
#3
That's not a patch ... read http://drupal.org/diffandpatch on how to create and submit a patch.