[otrs-cvs] otrs/Kernel/GenericInterface/Operation/Ticket TicketCreate.pm, 1.30, 1.30.2.1 TicketUpdate.pm, 1.4, 1.4.2.1

"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-serv30253/Kernel/GenericInterface/Operation/Ticket

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

Author: cr

Index: TicketCreate.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/GenericInterface/Operation/Ticket/TicketCreate.pm,v
retrieving revision 1.30
retrieving revision 1.30.2.1
diff -2 -u -d -r1.30 -r1.30.2.1
--- TicketCreate.pm	28 Mar 2012 06:24:51 -0000	1.30
+++ TicketCreate.pm	3 Jan 2013 00:31:38 -0000	1.30.2.1
@@ -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$
@@ -1048,5 +1048,5 @@
         }
 
-        if ( !$Self->{TicketCommonObject}->ValidateCharset( Charset => $Charset ) ) {
+        if ( $Charset && !$Self->{TicketCommonObject}->ValidateCharset( Charset => $Charset ) ) {
             return {
                 ErrorCode    => 'TicketCreate.InvalidParameter',

Author: cr

Index: TicketUpdate.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/GenericInterface/Operation/Ticket/TicketUpdate.pm,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -2 -u -d -r1.4 -r1.4.2.1
--- TicketUpdate.pm	28 Mar 2012 06:24:51 -0000	1.4
+++ TicketUpdate.pm	3 Jan 2013 00:31:38 -0000	1.4.2.1
@@ -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',
---------------------------------------------------------------------
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.