From b173a43505c2f9c2cc3d6138219b98a83c943a46 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 4 Dec 2003 11:34:36 +0000 Subject: [PATCH] Made 'preset xxx' work with boolean attributes SVN revision: 635 --- src/elogd.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index bbd9a9e6..c5604d16 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.164 2003/12/04 11:34:36 midas + Made 'preset xxx' work with boolean attributes + Revision 1.163 2003/12/03 14:36:01 midas Added 'comment ' @@ -5591,8 +5594,12 @@ char fl[8][NAME_LENGTH]; if (equal_ustring(attr_options[index][0], "boolean")) { /* display checkbox */ - rsprintf("\n", - attr_list[index]); + if (atoi(attrib[index]) == 1) + rsprintf("\n", + attr_list[index]); + else + rsprintf("\n", + attr_list[index]); } else {