[freeside-commits] freeside/FS/FS/TicketSystem RT_Internal.pm, 1.13, 1.14

Ivan,,, ivan at wavetail.420.am
Fri Feb 12 11:28:19 PST 2010


Update of /home/cvs/cvsroot/freeside/FS/FS/TicketSystem
In directory wavetail.420.am:/tmp/cvs-serv13961/FS/FS/TicketSystem

Modified Files:
	RT_Internal.pm 
Log Message:
add mime_type option to self-service ticket create, RT#7007

Index: RT_Internal.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem/RT_Internal.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- RT_Internal.pm	12 Feb 2010 01:35:32 -0000	1.13
+++ RT_Internal.pm	12 Feb 2010 19:28:17 -0000	1.14
@@ -138,6 +138,11 @@
 
 Ticket message
 
+=item mime_type
+
+MIME type to use for message.  Defaults to text/plain.  Specifying text/html
+can be useful to use HTML markup in message.
+
 =item custnum
 
 Customer number (see L<FS::cust_main>) to associate with ticket.
@@ -169,7 +174,7 @@
 
   my $mimeobj = MIME::Entity->build(
     'Data' => $param{'message'},
-    'Type' => 'text/plain',
+    'Type' => ( $param{'mime_type'} || 'text/plain' ),
   );
 
   my %ticket = (



More information about the freeside-commits mailing list