diff options
Diffstat (limited to 'rt/share/html/index.html')
| -rwxr-xr-x | rt/share/html/index.html | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/rt/share/html/index.html b/rt/share/html/index.html index fafba1cb5..b635f3c9a 100755 --- a/rt/share/html/index.html +++ b/rt/share/html/index.html @@ -90,6 +90,9 @@ $m->callback( ARGSRef => \%ARGS, results => \@results, CallbackName => 'Initial' skip_create => \$skip_create ); if ( $ARGS{'QuickCreate'} ) { + + ProcessAttachments(ARGSRef => \%ARGS); + my $QueueObj = RT::Queue->new($session{'CurrentUser'}); $QueueObj->Load($ARGS{Queue}) or Abort(loc("Queue could not be loaded.")); @@ -105,14 +108,16 @@ if ( $ARGS{'QuickCreate'} ) { my $created; if ( $ValidCFs && !$skip_create ) { my ($t, $msg) = CreateTicket( - Queue => $ARGS{'Queue'}, - Owner => $ARGS{'Owner'}, - Status => $ARGS{'Status'}, - # yes! it's Requestors, not Requestor - Requestors => $ARGS{'Requestors'}, - From => $session{'CurrentUser'}->EmailAddress, - Content => $ARGS{'Content'}, - Subject => $ARGS{'Subject'}); + Queue => $ARGS{'Queue'}, + Owner => $ARGS{'Owner'}, + Status => $ARGS{'Status'}, + # yes! it's Requestors, not Requestor + Requestors => $ARGS{'Requestors'}, + From => $session{'CurrentUser'}->EmailAddress, + Content => $ARGS{'Content'}, + Subject => $ARGS{'Subject'}, + Attachments => delete $session{'Attachments'}, + ); if ( $t && $t->Id && RT->Config->Get('DisplayAfterQuickCreate', $session{'CurrentUser'}) ) { RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=". $t->Id); } else { |
