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

Mailing List Archive: Request Tracker: Commit

rt branch, create-action, updated. d337d1406c2c83869bb1b7f8137f761eeaf4b4a2

 

 

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


sartak at bestpractical

Nov 18, 2009, 2:04 PM

Post #1 of 1 (306 views)
Permalink
rt branch, create-action, updated. d337d1406c2c83869bb1b7f8137f761eeaf4b4a2

The branch, create-action has been updated
via d337d1406c2c83869bb1b7f8137f761eeaf4b4a2 (commit)
from 87ac290783f54a904c7cbcb3b47b0a2c5c634dcd (commit)

Summary of changes:
lib/RT/Model/Ticket.pm | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit d337d1406c2c83869bb1b7f8137f761eeaf4b4a2
Author: Shawn M Moore <sartak [at] bestpractical>
Date: Wed Nov 18 17:04:02 2009 -0500

Handle attachments in Ticket->create

diff --git a/lib/RT/Model/Ticket.pm b/lib/RT/Model/Ticket.pm
index 1969258..9ee2436 100755
--- a/lib/RT/Model/Ticket.pm
+++ b/lib/RT/Model/Ticket.pm
@@ -811,6 +811,16 @@ sub create {
);
}

+ if ($args{'attachments'}) {
+ for my $attachment (@{ $args{'attachments'} }) {
+ $args{'mime_obj'}->attach(
+ Data => $attachment->content,
+ Type => $attachment->content_type,
+ Filename => $attachment->filename,
+ );
+ }
+ }
+
if ( $args{'_record_transaction'} ) {

# {{{ Add a transaction for the create

-----------------------------------------------------------------------
_______________________________________________
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.