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

drewish - January 12, 2007 - 17:14
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

#2

mhweb - January 12, 2007 - 17:52

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

AttachmentSize
attachment.module 14.85 KB

#3

telcontar - September 13, 2007 - 22:13

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

 
 

Drupal is a registered trademark of Dries Buytaert.