[otrs-cvs] otrs/Kernel/System/Ticket/Event NotificationEvent.pm, 1.48, 1.49
"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-serv14094/Kernel/System/Ticket/Event
Modified Files:
NotificationEvent.pm
Log Message:
- 2013-01-30 Fixed bug#9097 - ProcessManagement: Uninitialized value after Ticket is created if notification event is triggered.
Author: cr
Index: NotificationEvent.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/Event/NotificationEvent.pm,v
retrieving revision 1.48
retrieving revision 1.49
diff -2 -u -d -r1.48 -r1.49
--- NotificationEvent.pm 14 Jan 2013 18:30:02 -0000 1.48
+++ NotificationEvent.pm 30 Jan 2013 17:23:42 -0000 1.49
@@ -548,8 +548,4 @@
$Notification{Body} =~ s/<OTRS_CONFIG_.+?>/-/gi;
- # COMPAT
- $Notification{Body} =~ s/<OTRS_TICKET_ID>/$Param{TicketID}/gi;
- $Notification{Body} =~ s/<OTRS_TICKET_NUMBER>/$Article{TicketNumber}/gi;
-
# ticket data
my %Ticket = $Self->{TicketObject}->TicketGet(
@@ -558,4 +554,14 @@
);
+ # COMPAT
+ $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;
+
# prepare customer realname
if ( $Notification{Body} =~ /<OTRS_CUSTOMER_REALNAME>/ ) {
---------------------------------------------------------------------
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