[otrs-cvs] otrs/Kernel/System/Ticket/Event NotificationEvent.pm, 1.49, 1.50

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

Modified Files:
	NotificationEvent.pm 
Log Message:
Fixed typo, simplified code.

Author: mg

Index: NotificationEvent.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/Event/NotificationEvent.pm,v
retrieving revision 1.49
retrieving revision 1.50
diff -2 -u -d -r1.49 -r1.50
--- NotificationEvent.pm	30 Jan 2013 17:23:42 -0000	1.49
+++ NotificationEvent.pm	31 Jan 2013 08:22:55 -0000	1.50
@@ -555,11 +555,7 @@
 
     # COMPAT
+    # use Ticket information as a fallback (if ticket has no Articles)
+    my $TicketNumber = $Article{TicketNumber} || $Ticket{TicketNumber};
     $Notification{Body} =~ s/<OTRS_TICKET_ID>/$Param{TicketID}/gi;
-    my $TicketNumber = $Article{TicketNumber};
-
-    # use Ticket information as a fallbak (if ticket has no Articles)
-    if ( !$TicketNumber ) {
-        $TicketNumber = $Ticket{TicketNumber};
-    }
     $Notification{Body} =~ s/<OTRS_TICKET_NUMBER>/$TicketNumber/gi;
 
---------------------------------------------------------------------
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.