[otrs-cvs] otrs/Kernel/Modules AgentTicketProcess.pm,1.24,1.25

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

Modified Files:
	AgentTicketProcess.pm 
Log Message:
Added a default title to new tickets when the StartActivityDialog does not provide a a title for the ticket to be created.

Author: cr

Index: AgentTicketProcess.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketProcess.pm,v
retrieving revision 1.24
retrieving revision 1.25
diff -2 -u -d -r1.24 -r1.25
--- AgentTicketProcess.pm	28 Nov 2012 13:19:43 -0000	1.24
+++ AgentTicketProcess.pm	17 Dec 2012 12:50:59 -0000	1.25
@@ -331,7 +331,7 @@
         return $Self->_StoreActivityDialog(
             %Param,
+            ProcessName     => $ProcessList->{$ProcessEntityID},
             ProcessEntityID => $ProcessEntityID,
             GetParam        => $GetParam,
-
         );
     }
@@ -3592,4 +3592,13 @@
             $TicketParam{OwnerID} = $Param{GetParam}{OwnerID} || 1;
 
+            # if StartActivityDialog does not provide a ticket title set a default value
+            if ( !$TicketParam{Title} ) {
+
+                # get the current server Timestamp
+                my $CurrentTimeStamp = $Self->{TimeObject}->CurrentTimestamp();
+                $TicketParam{Title} = "$Param{ProcessName} - $CurrentTimeStamp";
+            }
+
+            # create a new ticket
             $TicketID = $Self->{TicketObject}->TicketCreate(%TicketParam);
 
---------------------------------------------------------------------
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.