Module: nagvis
Branch: nagvis-1.4
Commit: d777c89c059224aba93f5df5bc9238a206ce1bcc
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=d777c89c059224aba93f5df5bc9238a206ce1bcc

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

Fixed problem in WUI with new object_id

---

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

diff --git a/nagvis/nagvis/ajax_handler.php b/nagvis/nagvis/ajax_handler.php
index a702f6c..d040ae4 100644
--- a/nagvis/nagvis/ajax_handler.php
+++ b/nagvis/nagvis/ajax_handler.php
@@ -286,6 +286,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/nagvis/wui/includes/classes/WuiMapCfg.php 
b/nagvis/wui/includes/classes/WuiMapCfg.php
index 0a29a76..03edc76 100644
--- a/nagvis/wui/includes/classes/WuiMapCfg.php
+++ b/nagvis/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