summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authormark <mark>2009-11-24 01:11:22 +0000
committermark <mark>2009-11-24 01:11:22 +0000
commit0d68f85684a28f28dd895bd37c6a59d0bd91c496 (patch)
tree49b06c99f4c62c8b0a5ef7a939186ac6a33942e5 /httemplate/edit/process
parentc1d9ee594c7a950e44c0bc6d7e4e25b3d62b9f7b (diff)
cust_attachment improvement, RT#4964 and #6225
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r--httemplate/edit/process/cust_main_attach.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main_attach.cgi b/httemplate/edit/process/cust_main_attach.cgi
index 98f4d0912..092714122 100644
--- a/httemplate/edit/process/cust_main_attach.cgi
+++ b/httemplate/edit/process/cust_main_attach.cgi
@@ -53,6 +53,7 @@ if($attachnum) {
('_date', 'otaker', 'body', 'disabled');
$new->filename($cgi->param('filename') || $old->filename);
$new->mime_type($cgi->param('mime_type') || $old->mime_type);
+ $new->title($cgi->param('title'));
if($delete and not $old->disabled) {
$new->disabled(time);
}
@@ -67,6 +68,7 @@ else { # This is a new attachment, so require a file.
if($filename) {
$new->filename($filename);
$new->mime_type($cgi->uploadInfo($filename)->{'Content-Type'});
+ $new->title($cgi->param('title'));
local $/;
my $fh = $cgi->upload('file');