[icinga-checkins] icinga.org: icinga-web/master: * Service comments now don' t show host comments, added hidden field with defaultValue (#fixes 554)

git at icinga.org git at icinga.org
Thu Sep 9 14:55:42 CEST 2010


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

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Thu Sep  9 14:55:39 2010 +0200

* Service comments now don't show host comments, added hidden field with defaultValue (#fixes 554)

---

 .../data/xml/grid/icinga-service-template.xml      |    2 +-
 .../System/ViewProc/js/IcingaCommandHandler.js     |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/data/xml/grid/icinga-service-template.xml b/app/modules/Cronks/data/xml/grid/icinga-service-template.xml
index 5d997ac..29c59e0 100644
--- a/app/modules/Cronks/data/xml/grid/icinga-service-template.xml
+++ b/app/modules/Cronks/data/xml/grid/icinga-service-template.xml
@@ -425,7 +425,7 @@
         
 		<field name="comments">
 			<datasource>
-            	<parameter name="field">HOST_OBJECT_ID</parameter>
+            	<parameter name="field">SERVICE_OBJECT_ID</parameter>
             </datasource>
             
             <display>
diff --git a/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js b/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js
index 9bdce17..6449435 100755
--- a/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js
+++ b/app/modules/Cronks/templates/System/ViewProc/js/IcingaCommandHandler.js
@@ -150,7 +150,9 @@ IcingaCommandHandler.prototype = {
 				return new Ext.form.ComboBox(oDef);
 			
 			break;
-			
+			case  'hidden':
+				return new Ext.form.Hidden(oDef);
+			break;
 			case 'date':
 				oDef.format = 'Y-m-d H:i:s';
 				oDef.value = new Date();





More information about the icinga-checkins mailing list