Module: nagvis
Branch: master
Commit: e4122166dedd7af12aa439048ca50138ae16bade
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=e4122166dedd7af12aa439048ca50138ae16bade

Author: Lars Michelsen <[email protected]>
Date:   Sun Aug  2 19:17:48 2009 +0200

Fixed problem in WUI with new object_id

---

 share/nagvis/ajax_handler.php            |    3 +++
 share/wui/includes/classes/WuiMapCfg.php |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/share/nagvis/ajax_handler.php b/share/nagvis/ajax_handler.php
index 332c452..6a77cd3 100755
--- a/share/nagvis/ajax_handler.php
+++ b/share/nagvis/ajax_handler.php
@@ -315,6 +315,9 @@ function getObjConf($objType, $objName1, $objName2, 
$objectId, $map = null) {
                                if($objs[$i]['object_id'] == $objectId) {
                                        $objConf = $objs[$i];
                                        $objConf['id'] = $i;
+                                       
+                                       // Break the loop on first match
+                                       break;
                                }
                        }
                } else {
diff --git a/share/wui/includes/classes/WuiMapCfg.php 
b/share/wui/includes/classes/WuiMapCfg.php
index 0a29a76..03edc76 100644
--- a/share/wui/includes/classes/WuiMapCfg.php
+++ b/share/wui/includes/classes/WuiMapCfg.php
@@ -183,7 +183,7 @@ class WuiMapCfg extends GlobalMapCfg {
                                                                // Loop all 
parameters from array
                                                                
foreach($this->mapConfig[$type][$id] AS $key => $val) {
                                                                        // if 
key is not type
-                                                                       if($key 
!= 'type') {
+                                                                       if($key 
!= 'type' && $key != 'object_id') {
                                                                                
$cfgLines = 0;
                                                                                
$cfgLine = '';
                                                                                
$cfgLineNr = 0;


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to