Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

rt branch, create-action, updated. 71abdf427223254e91c10e84b07ca108bb36b07e

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


sartak at bestpractical

Nov 17, 2009, 6:18 PM

Post #1 of 1 (315 views)
Permalink
rt branch, create-action, updated. 71abdf427223254e91c10e84b07ca108bb36b07e

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>
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;

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.