fixed bug in alarm message expansion
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 23 Oct 2017 20:41:56 +0000 (23:41 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 23 Oct 2017 20:41:56 +0000 (23:41 +0300)
src/server/core/events.cpp

index b76f5d3..23ed97e 100644 (file)
@@ -585,7 +585,7 @@ TCHAR *Event::expandText(const TCHAR *textTemplate, const Alarm *alarm)
         obj = g_pEntireNet;
    }
 
-       return obj->expandText(textTemplate, alarm, NULL, NULL, NULL);
+       return obj->expandText(textTemplate, alarm, this, NULL, NULL);
 }
 
 /**