[otrs-cvs] ITSMChangeManagement/Kernel/System/ITSMChange/Event Notification.pm, 1.30, 1.31 Condition.pm, 1.7, 1.8

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

Modified Files:
	Notification.pm Condition.pm 
Log Message:
Fixed event problems due to the removal of lagacy code in Kernel::System::EventHandler where in older OTRS versions the param hash was poluted with the data hash. The data hash must now always be a seperate parameter in an event.

Author: ub

Index: Notification.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/System/ITSMChange/Event/Notification.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -2 -u -d -r1.30 -r1.31
--- Notification.pm	4 Mar 2011 16:09:13 -0000	1.30
+++ Notification.pm	22 Nov 2012 08:47:47 -0000	1.31
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/ITSMChange/Event/Notification.pm - a event module to send notifications
-# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -261,6 +261,6 @@
             Type        => $Type,
             Event       => $Event,
-            ChangeID    => $Param{ChangeID},
-            WorkOrderID => $Param{WorkOrderID},
+            ChangeID    => $Param{Data}->{ChangeID},
+            WorkOrderID => $Param{Data}->{WorkOrderID},
             OldData     => $OldData,
             UserID      => $Param{UserID},

Author: ub

Index: Condition.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/System/ITSMChange/Event/Condition.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -2 -u -d -r1.7 -r1.8
--- Condition.pm	28 Oct 2010 12:31:07 -0000	1.7
+++ Condition.pm	22 Nov 2012 08:47:47 -0000	1.8
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/ITSMChange/Event/Condition.pm - a event module to match conditions
-# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -229,5 +229,5 @@
 
                 # we do not track if accounted time was empty or zero
-                next FIELD if !$Param{AccountedTime};
+                next FIELD if !$Param{Data}->{AccountedTime};
 
                 # remember changed field name
---------------------------------------------------------------------
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.