[otrs-cvs] otrs/Kernel/Modules AgentTicketProcess.pm,1.27,1.28

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

Modified Files:
	AgentTicketProcess.pm 
Log Message:
 Fixed bug#9067- New process ticket: state selection empty after AJAX reload.

Author: mg

Index: AgentTicketProcess.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketProcess.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -2 -u -d -r1.27 -r1.28
--- AgentTicketProcess.pm	15 Jan 2013 23:02:44 -0000	1.27
+++ AgentTicketProcess.pm	21 Jan 2013 09:58:41 -0000	1.28
@@ -3238,8 +3238,5 @@
     }
 
-    my $States = $Self->_GetStates(
-        QueueID  => $Param{Ticket}->{QueueID}  || 1,
-        TicketID => $Param{Ticket}->{TicketID} || '',
-    );
+    my $States = $Self->_GetStates( %{ $Param{Ticket} } );
 
     my %Data = (
@@ -4674,18 +4671,20 @@
     my ( $Self, %Param ) = @_;
 
-    my %States;
-    if ( $Param{QueueID} || $Param{TicketID} ) {
-        %States = $Self->{TicketObject}->TicketStateList(
-            %Param,
+    my %States = $Self->{TicketObject}->TicketStateList(
+        %Param,
 
-            # remove type, since if Ticket::Type is active in sysconfig, the Type parameter will
-            # be sent and the TicketStateList will send the parameter as State Type
-            Type => undef,
+        # Set default values for new process ticket
+        QueueID  => $Param{QueueID}  || 1,
+        TicketID => $Param{TicketID} || '',
+
+        # remove type, since if Ticket::Type is active in sysconfig, the Type parameter will
+        # be sent and the TicketStateList will send the parameter as State Type
+        Type => undef,
+
+        #   Action may come in later if there's a reduced State list in config
+        #    Action => $Self->{Action},
+        UserID => $Self->{UserID},
+    );
 
-            #   Action may come in later if there's a reduced State list in config
-            #    Action => $Self->{Action},
-            UserID => $Self->{UserID},
-        );
-    }
     return \%States;
 }
---------------------------------------------------------------------
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.