[icinga-checkins] icinga.org: icinga-web/mhein/default: * Fixed null-reference in commandhandler preventing command send ( fixes #2105)

git at icinga.org git at icinga.org
Tue Nov 22 14:16:54 CET 2011


Module: icinga-web
Branch: mhein/default
Commit: bd4ee0faecca3619095548062cede90707fa3eb9
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=bd4ee0faecca3619095548062cede90707fa3eb9

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Nov 22 11:43:11 2011 +0100

* Fixed null-reference in commandhandler preventing command send (fixes #2105)

---

 .../Cronks/lib/js/grid/IcingaCommandHandler.js     |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js b/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
index 585fb42..14114e2 100755
--- a/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
+++ b/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
@@ -486,8 +486,10 @@ IcingaCommandHandler.prototype = {
                 
                 if (this.command_options.predefined.fixed === 1) {
                     var fdur = oForm.getForm().findField('duration');
-                    fdur.setReadOnly(true);
-                    fdur.container.hide();
+                    if(fdur) {
+                        fdur.setReadOnly(true);
+                        fdur.container.hide();
+                    }
                 }
 
                 oWin.show();





More information about the icinga-checkins mailing list