X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_attach.cgi;h=1677ea7bde958be4738a61cac9fbc5bfc59e060c;hb=dcc698164f1f2b43a32b5503716fc7329c203714;hp=ebbaf3cf3aaff068d4fb252049e368079aeedbea;hpb=873ec8e0528b7a944aec88936538fe9a04cd0b3f;p=freeside.git diff --git a/httemplate/edit/cust_main_attach.cgi b/httemplate/edit/cust_main_attach.cgi index ebbaf3cf3..1677ea7bd 100755 --- a/httemplate/edit/cust_main_attach.cgi +++ b/httemplate/edit/cust_main_attach.cgi @@ -6,19 +6,22 @@ -

- - % if(defined $attach) { % if($curuser->access_right("Download attachment")) { Download this file
% } +% } + +
+
+ +% if ( defined $attach ) { - + - + - + % } % else { # !defined $attach @@ -47,9 +50,8 @@ my $curuser = $FS::CurrentUser::CurrentUser; my $attachnum = ''; my $attach; -if ( $cgi->param('error') ) { - #$comment = $cgi->param('comment'); -} elsif ( $cgi->param('attachnum') =~ /^(\d+)$/ ) { + +if ( $cgi->param('attachnum') =~ /^(\d+)$/ ) { $attachnum = $1; die "illegal query ". $cgi->keywords unless $attachnum; $attach = qsearchs('cust_attachment', { 'attachnum' => $attachnum });
Filename >
>
Description
MIME type
Size <% $attach->size %>