[Rt-commit] rt branch, create-action, updated. 71abdf427223254e91c10e84b07ca108bb36b07e

sartak at bestpractical.com sartak at bestpractical.com
Tue Nov 17 21:18:47 EST 2009


The branch, create-action has been updated
       via  71abdf427223254e91c10e84b07ca108bb36b07e (commit)
      from  67ff7341864fb625683e7082293fb2f86a6e2ca8 (commit)

Summary of changes:
 lib/RT/Action/CreateTicket.pm |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

- Log -----------------------------------------------------------------
commit 71abdf427223254e91c10e84b07ca108bb36b07e
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Nov 17 21:18:26 2009 -0500

    We no longer need action-levellogic for uploads

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 9beb40a..eab9cbc 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -189,24 +189,6 @@ sub set_final_priority {
     $self->fill_parameter(final_priority => default_value => $queue->final_priority);
 }
 
-sub take_action {
-    my $self = shift;
-    my $fh = $self->argument_value('attachment');
-    $self->argument_value(attachment_filename => "$fh");
-
-    my $info = Jifty->handler->cgi->uploadInfo( $fh );
-    $self->argument_value(attachment_content_type => $info->{'Content-Type'})
-        if defined $info;
-
-    my $ret = $self->SUPER::take_action( @_ );
-
-    # Kill file handle so it's not in the session or request
-    $self->argument_value(attachment => '');
-    Jifty->web->request->delete('J:A:F-attachment-'.$self->moniker);
-
-    return $ret;
-}
-
 sub report_success {
     my $self = shift;
     my $id = $self->record->id;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list