Author:   Lars Michelsen <[email protected]>
Date:     Mon Nov  5 14:56:01 2012 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Nov  5 14:56:01 2012 +0100

Bugfix: Fixed status updates of objects on geomaps

---

 ChangeLog                            |    3 +++
 share/server/core/sources/geomap.php |    5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d9dd4de..db4dcb4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,9 @@ Frontend:
   * Better handling of HTTP errors in ajax transactions
   * Bugfix: Re-added "loading..." message on page redering
 
+Geomap
+  * Bugfix: Fixed status updates of objects on geomaps
+
 1.7.2
 Core:
   * Multisite auth module: Removed deprecated permission
diff --git a/share/server/core/sources/geomap.php 
b/share/server/core/sources/geomap.php
index cdce125..866f1b1 100644
--- a/share/server/core/sources/geomap.php
+++ b/share/server/core/sources/geomap.php
@@ -143,11 +143,12 @@ function process_geomap($MAPCFG, $map_name, &$map_config) 
{
 
     // Now add the objects to the map
     foreach($locations AS $loc) {
-        $map_config[$loc['name']] = array(
+        $object_id = $MAPCFG->genObjId($loc['name']);
+        $map_config[$object_id] = array(
             'type'      => 'host',
             'host_name' => $loc['name'],
             'iconset'   => $iconset,
-            'object_id' => $MAPCFG->genObjId($loc['name']),
+            'object_id' => $object_id,
             'alias'     => $loc['alias'],
             'lat'       => $loc['lat'],
             'long'      => $loc['long'],


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to