Author:   Lars Michelsen <[email protected]>
Date:     Mon Oct  3 23:20:24 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Oct  3 23:20:24 2011 +0200

Bugfix: Dont hide dependent fiels where the master attribute is not available

---

 ChangeLog                                         |    1 +
 share/server/core/classes/WuiViewMapAddModify.php |    5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1ebe280..35755d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@ Core
 
 Frontend
   * Bugfix: Added missing list code for header templates (map global section 
editing)
+  * Bugfix: Don't hide dependent fiels where the master attribute is not 
available
 
 1.6rc1
 
diff --git a/share/server/core/classes/WuiViewMapAddModify.php 
b/share/server/core/classes/WuiViewMapAddModify.php
index 926d505..7b3d2d7 100644
--- a/share/server/core/classes/WuiViewMapAddModify.php
+++ b/share/server/core/classes/WuiViewMapAddModify.php
@@ -154,7 +154,10 @@ class WuiViewMapAddModify {
 
             // Check if depends_on and depends_value are defined and if the 
value
             // is equal. If not equal hide the field
-            if(isset($prop['depends_on']) && isset($prop['depends_value'])) {
+            // Don't hide dependent fields where the dependant is not set
+            if(isset($prop['depends_on'])
+               && isset($prop['depends_value'])
+               && isset($typeDef[$prop['depends_on']])) {
                 array_push($rowClasses, 'child-row');
                 
                 list($depInherited, $depValue) = $this->getAttr($typeDefaults, 
$update, $objId, $prop['depends_on'], $typeDef[$prop['depends_on']]['must']);


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to