Module: check_mk
Branch: master
Commit: 03e397665b52b4a36457cce4d170bb8675e6962b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03e397665b52b4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 13 13:42:37 2013 +0200
Fixed host attribute tag based dependencies in host edit dialog on initial rendering
---
ChangeLog | 6 ++++--
web/htdocs/js/wato.js | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4091581..5561dee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -124,10 +124,12 @@
* Allow GIT to be used for change tracking (enable via global option)
* Hosts/Folders: SNMP communities can now be configured via the host
and folders hierarchy. Those settings override the rule base config.
- * FIX: do validation of check items in rule editor
- * FIX: More consistent handling of folderpath select in rule editor
* Require unique alias names in between the following elements:
Host/Service/Contact Groups, Timeperiods and Roles
+ * FIX: do validation of check items in rule editor
+ * FIX: More consistent handling of folderpath select in rule editor
+ * FIX: Now correctly handling depends_on_tags on page rendering for
+ inherited values
Notifications:
* Flexible Notification can now filter service levels
diff --git a/web/htdocs/js/wato.js b/web/htdocs/js/wato.js
index b95705f..7fde70b 100644
--- a/web/htdocs/js/wato.js
+++ b/web/htdocs/js/wato.js
@@ -97,7 +97,7 @@ function wato_fix_visibility() {
/* If the Checkbox is unchecked try to get a value from the inherited_tags */
var oCheckbox = oTdLegend.childNodes[1].childNodes[0];
if (oCheckbox.checked == false ){
- var attrname = oCheckbox.parentNode.parentNode.id;
+ var attrname = 'attr_' + oCheckbox.name.replace('_change_', '');
if(attrname in inherited_tags && inherited_tags[attrname] !== null){
currentTags = currentTags.concat(inherited_tags[attrname].split("|"));
}