Module: check_mk
Branch: master
Commit: 0b3e529b95e9b281cd73afa91a808f34635d567c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b3e529b95e9b2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri May 27 13:55:37 2016 +0200
3579 FIX Fixed visibility of SNMP community attribute when SNMP tag is inherited
---
.werks/3579 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/js/wato.js | 4 ++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/3579 b/.werks/3579
new file mode 100644
index 0000000..85521c7
--- /dev/null
+++ b/.werks/3579
@@ -0,0 +1,10 @@
+Title: Fixed visibility of SNMP community attribute when SNMP tag is inherited
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1464350115
+
+
diff --git a/ChangeLog b/ChangeLog
index fad9e46..050852d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -393,6 +393,7 @@
* 3527 FIX: WATO service discovery: fixed warning with locked hosts...
* 3534 FIX: Fixed exception with upload of interlaced PNG files...
* 3242 FIX: Fixed hostname translation for empty optional groups
+ * 3579 FIX: Fixed visibility of SNMP community attribute when SNMP tag is inherited
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/web/htdocs/js/wato.js b/web/htdocs/js/wato.js
index 4b51e2b..2ac3830 100644
--- a/web/htdocs/js/wato.js
+++ b/web/htdocs/js/wato.js
@@ -96,10 +96,10 @@ function wato_fix_visibility() {
}
var oTdContent = oTr.childNodes[1];
/* If the Checkbox is unchecked try to get a value from the inherited_tags
*/
- var oCheckbox = oTdLegend.childNodes[1].childNodes[0];
+ var oCheckbox = oTdLegend.getElementsByTagName("input")[0];
if (oCheckbox.checked == false ){
var attrname = 'attr_' + oCheckbox.name.replace(/.*_change_/,
'');
- if(attrname in inherited_tags && inherited_tags[attrname] !==
null){
+ if (attrname in inherited_tags && inherited_tags[attrname] !==
null){
currentTags =
currentTags.concat(inherited_tags[attrname].split("|"));
}
} else {