Author:   Lars Michelsen <[email protected]>
Date:     Mon Apr  2 11:07:40 2012 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Apr  2 11:07:40 2012 +0200

Fixed usage of user profile params in view parameters

---

 share/server/core/classes/GlobalMapCfg.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/server/core/classes/GlobalMapCfg.php 
b/share/server/core/classes/GlobalMapCfg.php
index ae9ad2c..2fe5fd5 100644
--- a/share/server/core/classes/GlobalMapCfg.php
+++ b/share/server/core/classes/GlobalMapCfg.php
@@ -549,9 +549,9 @@ class GlobalMapCfg {
         } else {
             // Try to use the user profile
             $USERCFG = new CoreUserCfg();
-            $val = $USERCFG->getValue($key);
-            if($val !== null) {
-                return $val;
+            $userParams = $USERCFG->getValue('params-' . $this->name);
+            if(isset($userParams[$key])) {
+                return $userParams[$key];
                 
             } elseif(!$only_user_supplied) {
                 // Otherwise use the map global value (if allowed)


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to