[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Removed 'undefined' from openproblems

git at icinga.org git at icinga.org
Tue Nov 9 11:32:26 CET 2010


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

Author: Marius Hein <marius.hein at netways.de>
Date:   Wed Oct  6 09:58:25 2010 +0200

* Removed 'undefined' from openproblems

---

 app/modules/Web/lib/js/StatusData.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/modules/Web/lib/js/StatusData.js b/app/modules/Web/lib/js/StatusData.js
index f50b517..330253e 100755
--- a/app/modules/Web/lib/js/StatusData.js
+++ b/app/modules/Web/lib/js/StatusData.js
@@ -106,6 +106,10 @@ Icinga.StatusData = (function() {
 			t = pub.servicestatusText[statusid];
 		}
 		
+		if (Ext.isEmpty(t)) {
+			t = '';
+		}
+		
 		return {cls: c, text: String.format.call(String, format, t)};
 	};
 	





More information about the icinga-checkins mailing list