[icinga-checkins] icinga.org: icinga-core/master: classic-ui: Changed field size for hours to 4 when setting flexible downtime #3484

git at icinga.org git at icinga.org
Wed Jan 2 21:31:47 CET 2013


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

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Fri Dec  7 21:52:52 2012 +0100

classic-ui: Changed field size for hours to 4 when setting flexible downtime #3484

refs: #3484

Changed size to four. Flexible downtime can now last for more then a year!

---

 Changelog |    2 ++
 cgi/cmd.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index cb9a95d..856e157 100644
--- a/Changelog
+++ b/Changelog
@@ -16,6 +16,8 @@ UPGRADE NOTES
 
 ENHANCEMENTS
 
+* classic ui: Changed field size for hours to 4 when setting flexible downtime #3484 - RB
+
 FIXES
 * core: fix faulty macro cleaning, replacing spaces with pluses where they shouldn't be cleaned #3397 - MF
 * core: fix macro escaping logs incorrect warning for $$escapes #3404 - MF
diff --git a/cgi/cmd.c b/cgi/cmd.c
index f06b2ac..8c1e090 100644
--- a/cgi/cmd.c
+++ b/cgi/cmd.c
@@ -1090,7 +1090,7 @@ void print_form_element(int element, int cmd) {
 		printf("</td><td align=\"left\">\n");
 		printf("\t<table border=0  cellspacing=0 cellpadding=0>\n");
 		printf("\t\t<tr>\n");
-		printf("\t\t\t<td><INPUT TYPE='TEXT' NAME='hours' VALUE='%d' SIZE=2 MAXLENGTH=2></td>\n", t_hour);
+		printf("\t\t\t<td><INPUT TYPE='TEXT' NAME='hours' VALUE='%d' SIZE=4 MAXLENGTH=4></td>\n", t_hour);
 		printf("\t\t\t<td width=\"50\"> Hours</td>\n");
 		printf("\t\t\t<td><INPUT TYPE='TEXT' NAME='minutes' VALUE='%d' SIZE=2 MAXLENGTH=2></td>\n", t_min);
 		printf("\t\t\t<td width=\"50\"> Minutes</td>\n");





More information about the icinga-checkins mailing list