]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect parameter for OnNotificationSentChanged event.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 30 Aug 2013 13:36:13 +0000 (15:36 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 30 Aug 2013 13:36:13 +0000 (15:36 +0200)
lib/icinga/notification.cpp

index 7da0ce79a637bb32357e871897e6cc5608c6ce1e..35da7c1e489a099f69a3131f0896f886f8aae134 100644 (file)
@@ -341,7 +341,7 @@ void Notification::ExecuteNotificationHelper(NotificationType type, const User::
                        SetLastNotification(Utility::GetTime());
                }
 
-               Service::OnNotificationSentChanged(GetSelf(), user, type, cr, author, text);
+               Service::OnNotificationSentChanged(GetService(), user, type, cr, author, text);
 
                Log(LogInformation, "icinga", "Completed sending notification for service '" + GetService()->GetName() + "'");
        } catch (const std::exception& ex) {