fixed bug in NXSL function FindObject (issue #1255)
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 7 Jul 2016 08:18:59 +0000 (11:18 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 7 Jul 2016 08:18:59 +0000 (11:18 +0300)
ChangeLog
src/server/core/interface.cpp
src/server/include/nms_objects.h

index 72010ce..023c8bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,7 +31,7 @@
         - Fixed possible deadlock when executing server script
         - Fixed area charts on dashboards
         - "Interactive" option for line chart dashboard elements
-- Fixed issues: #1018, #1039, #1239, #1250
+- Fixed issues: #1018, #1039, #1239, #1250, #1255
 
 
 *
index 482c93b..8181007 100644 (file)
@@ -1313,3 +1313,11 @@ void Interface::setNetMask(const InetAddress& addr)
    setModified();
    unlockProperties();
 }
+
+/**
+ * Create NXSL object for this object
+ */
+NXSL_Value *Interface::createNXSLObject()
+{
+   return new NXSL_Value(new NXSL_Object(&g_nxslInterfaceClass, this));
+}
index b0e11d8..acb1dd0 100644 (file)
@@ -823,6 +823,8 @@ public:
    virtual bool deleteFromDatabase(DB_HANDLE hdb);
    virtual bool loadFromDatabase(DB_HANDLE hdb, UINT32 id);
 
+   virtual NXSL_Value *createNXSLObject();
+
    Node *getParentNode();
    UINT32 getParentNodeId();