Author:   Lars Michelsen <[email protected]>
Date:     Fri Oct 28 01:41:21 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Oct 28 01:41:21 2011 +0200

Bugfix: Fixed automap alias on overview page and in lists

---

 ChangeLog                                      |    1 +
 share/server/core/classes/NagVisAutomapCfg.php |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b901a68..56c29e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ Core
 
 Automap
   * Improved coord parsing code to make it graphviz-2.6-22.2 compatible
+  * Bugfix: Fixed automap alias on overview page and in lists
 
 1.6rc3
 Core
diff --git a/share/server/core/classes/NagVisAutomapCfg.php 
b/share/server/core/classes/NagVisAutomapCfg.php
index 922f845..e314a7e 100644
--- a/share/server/core/classes/NagVisAutomapCfg.php
+++ b/share/server/core/classes/NagVisAutomapCfg.php
@@ -100,7 +100,9 @@ class NagVisAutomapCfg extends GlobalMapCfg {
                 }
             }
 
-            $this->deleteElement($objectId);
+            // Delete the dummy object when it has been used
+            if($objectId != 0)            
+                $this->deleteElement($objectId);
         }
 
         return $this->defaultConf;


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to