[otrs-cvs] otrs/Kernel/GenericInterface/Operation/Ticket TicketUpdate.pm, 1.10, 1.11 TicketCreate.pm, 1.35, 1.36

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/GenericInterface/Operation/Ticket
In directory lancelot:/tmp/cvs-serv30397/Kernel/GenericInterface/Operation/Ticket

Modified Files:
	TicketUpdate.pm TicketCreate.pm 
Log Message:
Fixed bug#9020 - Generic Ticket Connector does not support attachments with ContentType without charset.

Author: cr

Index: TicketUpdate.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/GenericInterface/Operation/Ticket/TicketUpdate.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -2 -u -d -r1.10 -r1.11
--- TicketUpdate.pm	20 Nov 2012 14:29:48 -0000	1.10
+++ TicketUpdate.pm	3 Jan 2013 00:32:02 -0000	1.11
@@ -1,5 +1,5 @@
 # --
 # Kernel/GenericInterface/Operation/Ticket/TicketUpdate.pm - GenericInterface Ticket TicketUpdate operation backend
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -1123,5 +1123,5 @@
     }
 
-    # check DynamicField itm internally
+    # check attachment item internally
     for my $Needed (qw(Content ContentType Filename)) {
         if ( !$Attachment->{$Needed} ) {
@@ -1147,5 +1147,5 @@
         }
 
-        if ( !$Self->{TicketCommonObject}->ValidateCharset( Charset => $Charset ) ) {
+        if ( $Charset && !$Self->{TicketCommonObject}->ValidateCharset( Charset => $Charset ) ) {
             return {
                 ErrorCode    => 'TicketUpdate.InvalidParameter',

Author: cr

Index: TicketCreate.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm,v
retrieving revision 1.35
retrieving revision 1.36
diff -2 -u -d -r1.35 -r1.36
--- TicketCreate.pm	20 Nov 2012 14:29:08 -0000	1.35
+++ TicketCreate.pm	3 Jan 2013 00:32:02 -0000	1.36
@@ -1,5 +1,5 @@
 # --
 # Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm - GenericInterface Ticket TicketCreate operation backend
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -1050,5 +1050,5 @@
         }
 
-        if ( !$Self->{TicketCommonObject}->ValidateCharset( Charset => $Charset ) ) {
+        if ( $Charset && !$Self->{TicketCommonObject}->ValidateCharset( Charset => $Charset ) ) {
             return {
                 ErrorCode    => 'TicketCreate.InvalidParameter',
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.