[otrs-cvs] otrs/Kernel/Modules AgentTicketProcess.pm,1.46,1.47

"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-serv2172/Kernel/Modules

Modified Files:
	AgentTicketProcess.pm 
Log Message:
 - 2013-02-14 Fixed bug#9087 - ProcessManagement: AgentTicketProcess doesn't show multi level queue structure.

Author: cr

Index: AgentTicketProcess.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketProcess.pm,v
retrieving revision 1.46
retrieving revision 1.47
diff -2 -u -d -r1.46 -r1.47
--- AgentTicketProcess.pm	15 Feb 2013 03:11:49 -0000	1.46
+++ AgentTicketProcess.pm	15 Feb 2013 03:41:12 -0000	1.47
@@ -566,6 +566,7 @@
                     Data         => $Data,
                     SelectedID   => $Param{GetParam}{ $Self->{NameToID}{$CurrentField} },
-                    PossibleNone => 0,
+                    PossibleNone => 1,
                     Translation  => 0,
+                    TreeView     => $TreeView,
                     Max          => 100,
                 },
@@ -3329,5 +3330,5 @@
             $SelectedValue = $Self->{QueueObject}->QueueLookup(
                 QueueID => $Param{ActivityDialogField}->{DefaultValue} || '',
-                )
+            );
         }
     }
@@ -3344,4 +3345,10 @@
     }
 
+    # get list type
+    my $TreeView = 0;
+    if ( $Self->{ConfigObject}->Get('Ticket::Frontend::ListType') eq 'tree' ) {
+        $TreeView = 1;
+    }
+
     # build next queues string
     $Data{Content} = $Self->{LayoutObject}->BuildSelection(
@@ -3351,4 +3358,7 @@
         SelectedValue => $SelectedValue,
         Class         => $ServerError,
+        TreeView      => $TreeView,
+        Sort          => 'TreeView',
+        PossibleNone  => 1,
     );
 
@@ -4954,6 +4964,4 @@
     }
 
-    # add empty selection
-    $NewQueues{''} = '-';
     return \%NewQueues;
 }
---------------------------------------------------------------------
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.