diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 00:21:24 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 00:21:24 -0700 |
| commit | 679854b8bbc65d112071111bbd7f34a6a481fb30 (patch) | |
| tree | dda0862fdf7853f4f61e4cf155c8bbc93768c994 /rt/share/html/Ticket/Create.html | |
| parent | 9b328d940af56b9924a342192ebb0790478fa705 (diff) | |
RT 4.0.13
Diffstat (limited to 'rt/share/html/Ticket/Create.html')
| -rwxr-xr-x | rt/share/html/Ticket/Create.html | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/rt/share/html/Ticket/Create.html b/rt/share/html/Ticket/Create.html index 8c6a58ad0..6d84b036d 100755 --- a/rt/share/html/Ticket/Create.html +++ b/rt/share/html/Ticket/Create.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -376,32 +376,7 @@ my $ValidCFs = $m->comp( ARGSRef => \%ARGS ); -# deal with deleting uploaded attachments -foreach my $key (keys %ARGS) { - if ($key =~ m/^DeleteAttach-(.+)$/) { - delete $session{'Attachments'}{$1}; - } - $session{'Attachments'} = { %{$session{'Attachments'} || {}} }; -} - -# store the uploaded attachment in session -if ( defined $ARGS{'Attach'} && length $ARGS{'Attach'} ) { # attachment? - my $attachment = MakeMIMEEntity( - AttachmentFieldName => 'Attach' - ); - - my $file_path = Encode::decode_utf8("$ARGS{'Attach'}"); - $session{'Attachments'} = { - %{$session{'Attachments'} || {}}, - $file_path => $attachment, - }; -} - -# delete temporary storage entry to make WebUI clean -unless (keys %{$session{'Attachments'}} and - ($ARGS{'id'} eq 'new' or $ARGS{'id'} eq 'refresh')) { - delete $session{'Attachments'}; -} +ProcessAttachments(ARGSRef => \%ARGS); my $checks_failure = 0; |
