[otrs-cvs] otrs/Kernel/System/ProcessManagement/TransitionAction TicketTypeSet.pm, 1.1, 1.2

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

Modified Files:
	TicketTypeSet.pm 
Log Message:
Changed TransitionAction TicketTypeSet parameters from TicketType and TicketTypeID to Type and TypeID to make them more consistent with the other TransitionActions.

Author: cr

Index: TicketTypeSet.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/ProcessManagement/TransitionAction/TicketTypeSet.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -2 -u -d -r1.1 -r1.2
--- TicketTypeSet.pm	17 Dec 2012 14:41:07 -0000	1.1
+++ TicketTypeSet.pm	11 Jan 2013 21:53:23 -0000	1.2
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/ProcessManagement/TransitionAction/TicketTypeSet.pm - A Module to set the type of a process ticket
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -119,7 +119,7 @@
         Ticket      => \%Ticket, # required
         Config      => {
-            TicketType => 'Default',
+            Type => 'Default',
             # or
-            TicketTypeID => 1,
+            TypeID => 1,
         }
     );
@@ -130,6 +130,4 @@
     $TicketTypeSetResult = 1; # 0
 
-    );
-
 =cut
 
@@ -165,8 +163,8 @@
     }
 
-    if ( !$Param{Config}->{TicketTypeID} && !$Param{Config}->{TicketType} ) {
+    if ( !$Param{Config}->{TypeID} && !$Param{Config}->{Type} ) {
         $Self->{LogObject}->Log(
             Priority => 'error',
-            Message  => "No TicketType or TicketTypeID configured!",
+            Message  => "No Type or TypeID configured!",
         );
         return;
@@ -183,10 +181,10 @@
     my $Success;
     if (
-        defined $Param{Config}->{TicketType}
-        && $Param{Config}->{TicketType} ne $Param{Ticket}->{Type}
+        defined $Param{Config}->{Type}
+        && $Param{Config}->{Type} ne $Param{Ticket}->{Type}
         )
     {
         $Success = $Self->{TicketObject}->TicketTypeSet(
-            Type     => $Param{Config}->{TicketType},
+            Type     => $Param{Config}->{Type},
             TicketID => $Param{Ticket}->{TicketID},
             UserID   => $Param{UserID},
@@ -194,10 +192,10 @@
     }
     elsif (
-        defined $Param{Config}->{TicketTypeID}
-        && $Param{Config}->{TicketTypeID} ne $Param{Ticket}->{TypeID}
+        defined $Param{Config}->{TypeID}
+        && $Param{Config}->{TypeID} ne $Param{Ticket}->{TypeID}
         )
     {
         $Success = $Self->{TicketObject}->TicketTypeSet(
-            TypeID   => $Param{Config}->{TicketTypeID},
+            TypeID   => $Param{Config}->{TypeID},
             TicketID => $Param{Ticket}->{TicketID},
             UserID   => $Param{UserID},
---------------------------------------------------------------------
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.