[otrs-cvs] otrs/Kernel/System/ProcessManagement/TransitionAction TicketQueueSet.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-serv16608/Kernel/System/ProcessManagement/TransitionAction
Modified Files:
TicketQueueSet.pm
Log Message:
Fixed bug#9037 - TransitionAction TicketQueueSet parameters does not follow same name convention as others.
Author: cr
Index: TicketQueueSet.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/ProcessManagement/TransitionAction/TicketQueueSet.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -2 -u -d -r1.1 -r1.2
--- TicketQueueSet.pm 11 Jan 2013 06:09:05 -0000 1.1
+++ TicketQueueSet.pm 11 Jan 2013 06:18:00 -0000 1.2
@@ -1,5 +1,5 @@
# --
# Kernel/System/ProcessManagement/TransitionAction/TicketQueueSet.pm - A Module to move a Ticket from to a new queue
-# 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 => {
- TargetQueue => 'Misc',
+ Queue => 'Misc',
# or
- TargetQueueID => 1,
+ QueueID => 1,
}
);
@@ -165,8 +165,8 @@
}
- if ( !$Param{Config}->{TargetQueueID} && !$Param{Config}->{TargetQueue} ) {
+ if ( !$Param{Config}->{QueueID} && !$Param{Config}->{Queue} ) {
$Self->{LogObject}->Log(
Priority => 'error',
- Message => "No TargetQueue or TargetQueueID configured!",
+ Message => "No Queue or QueueID configured!",
);
return;
@@ -174,10 +174,10 @@
my $Success;
if (
- defined $Param{Config}->{TargetQueue}
- && $Param{Config}->{TargetQueue} ne $Param{Ticket}->{Queue}
+ defined $Param{Config}->{Queue}
+ && $Param{Config}->{Queue} ne $Param{Ticket}->{Queue}
)
{
$Success = $Self->{TicketObject}->TicketQueueSet(
- Queue => $Param{Config}->{TargetQueue},
+ Queue => $Param{Config}->{Queue},
TicketID => $Param{Ticket}->{TicketID},
UserID => $Param{UserID},
@@ -185,10 +185,10 @@
}
elsif (
- defined $Param{Config}->{TargetQueueID}
- && $Param{Config}->{TargetQueueID} ne $Param{Ticket}->{QueueID}
+ defined $Param{Config}->{QueueID}
+ && $Param{Config}->{QueueID} ne $Param{Ticket}->{QueueID}
)
{
$Success = $Self->{TicketObject}->TicketQueueSet(
- QueueID => $Param{Config}->{TargetQueueID},
+ QueueID => $Param{Config}->{QueueID},
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