[otrs-cvs] TemplateModule/Kernel/System/Ticket/Event EventModulePostTemplate.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/TemplateModule/Kernel/System/Ticket/Event
In directory lancelot:/tmp/cvs-serv9405/Kernel/System/Ticket/Event

Modified Files:
	EventModulePostTemplate.pm 
Log Message:
Updated sample for proper use of data in Event Module.

Author: mb

Index: EventModulePostTemplate.pm
===================================================================
RCS file: /home/cvs/TemplateModule/Kernel/System/Ticket/Event/EventModulePostTemplate.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -2 -u -d -r1.1 -r1.2
--- EventModulePostTemplate.pm	10 May 2010 17:56:20 -0000	1.1
+++ EventModulePostTemplate.pm	29 Jan 2013 09:40:12 -0000	1.2
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/Ticket/Event/EventModulePostTemplate.pm - event module
-# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -45,5 +45,5 @@
 
     # check needed stuff
-    for (qw(TicketID Event Config)) {
+    for (qw(Data Event Config)) {
         if ( !$Param{$_} ) {
             $Self->{LogObject}->Log( Priority => 'error', Message => "Need $_!" );
@@ -55,5 +55,5 @@
 
     my %Ticket = $Self->{TicketObject}->TicketGet(
-        TicketID => $Param{TicketID},
+        TicketID => $Param{Data}->{TicketID},
         UserID   => 1,
     );
@@ -63,5 +63,5 @@
     # do some stuff
     $Self->{TicketObject}->HistoryAdd(
-        TicketID     => $Param{TicketID},
+        TicketID     => $Param{Data}->{TicketID},
         CreateUserID => 1,
         HistoryType  => 'Misc',
---------------------------------------------------------------------
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.