Author:   Lars Michelsen <[email protected]>
Date:     Wed Jul 17 18:07:32 2013 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Wed Jul 17 18:07:32 2013 +0200

Fixed bug when using hardcoded default backend from maincfg on maps

---

 share/server/core/classes/CoreModOverview.php |    5 +----
 share/server/core/classes/GlobalMainCfg.php   |    2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/share/server/core/classes/CoreModOverview.php 
b/share/server/core/classes/CoreModOverview.php
index 8e01346..ae6248d 100644
--- a/share/server/core/classes/CoreModOverview.php
+++ b/share/server/core/classes/CoreModOverview.php
@@ -166,15 +166,12 @@ class CoreModOverview extends CoreModule {
                 $a = explode('-', $objectId, 2);
                 if(!isset($a[1]))
                     continue;
-
-                list($mapType, $mapName) = $a;
-
+                $mapName = $a[1];
                 // list mode: Skip processing when this type of object should 
not be shown
                 if(cfg('index', 'showmaps') != 1)
                     continue;
             } else {
                 $mapName  = $objectId;
-                $mapType  = $type;
                 $objectId = $type . '-' . $mapName;
             }
 
diff --git a/share/server/core/classes/GlobalMainCfg.php 
b/share/server/core/classes/GlobalMainCfg.php
index b494276..ab64f99 100644
--- a/share/server/core/classes/GlobalMainCfg.php
+++ b/share/server/core/classes/GlobalMainCfg.php
@@ -288,7 +288,7 @@ class GlobalMainCfg {
                 'backend' => Array(
                     'must'        => 0,
                     'editable'    => 1,
-                    'default'     => 'live_1',
+                    'default'     => array('live_1'),
                     'array'       => true,
                     'field_type'  => 'dropdown',
                     'match'       => MATCH_BACKEND_ID


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to