summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cust_main_attach.cgi
diff options
context:
space:
mode:
authormark <mark>2009-11-17 00:06:25 +0000
committermark <mark>2009-11-17 00:06:25 +0000
commite5e706ef5cebf3db8754801a9bedf90e9a796ef9 (patch)
treec6245285f11fd1ac275eac5a1eca726acdceb5bc /httemplate/edit/process/cust_main_attach.cgi
parentd99758f77f8d2f839934498af839109596e216b8 (diff)
cust_attachment improvement, RT#4964 and #6225
Diffstat (limited to 'httemplate/edit/process/cust_main_attach.cgi')
-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');