[otrs-cvs] otrs/Kernel/System/Ticket/Event NotificationEvent.pm, 1.47, 1.48
"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-serv14068/Kernel/System/Ticket/Event
Modified Files:
NotificationEvent.pm
Log Message:
Fixed bug#9035 - Event Based mails, triggered by a process ticket, have no sender.
Author: cr
Index: NotificationEvent.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Ticket/Event/NotificationEvent.pm,v
retrieving revision 1.47
retrieving revision 1.48
diff -2 -u -d -r1.47 -r1.48
--- NotificationEvent.pm 14 Jan 2013 15:15:27 -0000 1.47
+++ NotificationEvent.pm 14 Jan 2013 18:30:02 -0000 1.48
@@ -632,6 +632,12 @@
# get owner data
+ my $OwnerID = $Article{OwnerID};
+
+ # get owner from ticket if there are no articles
+ if ( !$OwnerID ) {
+ $OwnerID = $Ticket{OwnerID};
+ }
my %OwnerPreferences = $Self->{UserObject}->GetUserData(
- UserID => $Article{OwnerID},
+ UserID => $OwnerID,
NoOutOfOffice => 1,
);
@@ -647,6 +653,13 @@
# get responsible data
+ my $ResponsibleID = $Article{ResponsibleID};
+
+ # get responsible from ticket if there are no articles
+ if ( !$ResponsibleID ) {
+ $ResponsibleID = $Ticket{ResponsibleID};
+ }
+
my %ResponsiblePreferences = $Self->{UserObject}->GetUserData(
- UserID => $Article{ResponsibleID},
+ UserID => $ResponsibleID,
NoOutOfOffice => 1,
);
---------------------------------------------------------------------
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