[otrs-cvs] otrs/Kernel/Modules AgentTicketProcess.pm,1.44,1.45

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

Modified Files:
	AgentTicketProcess.pm 
Log Message:
Reverted fix for bug#9158.

Author: cr

Index: AgentTicketProcess.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketProcess.pm,v
retrieving revision 1.44
retrieving revision 1.45
diff -2 -u -d -r1.44 -r1.45
--- AgentTicketProcess.pm	14 Feb 2013 14:53:48 -0000	1.44
+++ AgentTicketProcess.pm	15 Feb 2013 03:09:53 -0000	1.45
@@ -3191,24 +3191,21 @@
     }
 
-    # get field default value from the config
-    my $DefaultPriority = $Param{ActivityDialogField}->{DefaultValue} || '';
-
     if ( $Param{FieldName} eq 'Priority' ) {
 
-        if ( !$SelectedValue && $DefaultPriority ) {
+        if ( !$SelectedValue ) {
 
-            # check if default value exist in the system
+            # Fetch DefaultValue from Config
             $SelectedValue = $Self->{PriorityObject}->PriorityLookup(
-                Priority => $DefaultPriority,
+                Priority => $Param{ActivityDialogField}->{DefaultValue} || '',
             );
             if ($SelectedValue) {
-                $SelectedValue = $DefaultPriority;
+                $SelectedValue = $Param{ActivityDialogField}->{DefaultValue};
             }
         }
     }
     else {
-        if ( !$SelectedValue && $DefaultPriority ) {
+        if ( !$SelectedValue ) {
             $SelectedValue = $Self->{PriorityObject}->PriorityLookup(
-                PriorityID => $DefaultPriority,
+                PriorityID => $Param{ActivityDialogField}->{DefaultValue} || '',
             );
         }
---------------------------------------------------------------------
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.