[icinga-checkins] icinga.org: icinga-web/r1.5: * Fixed default values in commands

git at icinga.org git at icinga.org
Fri Apr 27 13:48:57 CEST 2012


Module: icinga-web
Branch: r1.5
Commit: 0919003e1cff18d90d55de19b1ceb7a1abc5b630
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=0919003e1cff18d90d55de19b1ceb7a1abc5b630

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Fri Apr 27 13:48:40 2012 +0200

* Fixed default values in commands

---

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

diff --git a/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js b/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
index 4c9afeb..8da4318 100755
--- a/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
+++ b/app/modules/Cronks/lib/js/grid/IcingaCommandHandler.js
@@ -432,7 +432,7 @@ IcingaCommandHandler.prototype = {
 						fieldLabel: item,
 						fieldName: item,
 						fieldType: o.types[item].type,
-						fieldValue: this.command_options.predefined[item] || '',
+						fieldValue: this.command_options.predefined[item] || o.types[item].defaultValue || '',
 						fieldRequired: o.types[item].required || false,
 						form: oForm
 					});





More information about the icinga-checkins mailing list