Fixed missing format_flags initialization

SVN revision: 683
This commit is contained in:
Stefan Ritt 2004-01-15 12:15:47 +00:00
parent ab52a10466
commit 9cdfc1e3d0

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.194 2004/01/15 12:15:47 midas
Fixed missing format_flags initialization
Revision 1.193 2004/01/15 11:22:52 midas Revision 1.193 2004/01/15 11:22:52 midas
Fixed bug that boolean attributes were not accepted Fixed bug that boolean attributes were not accepted
@ -5803,6 +5806,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
strcpy(class_value, "attribvalue"); strcpy(class_value, "attribvalue");
input_size = 80; input_size = 80;
input_maxlen = NAME_LENGTH; input_maxlen = NAME_LENGTH;
format_flags = 0;
sprintf(str, "Format %s", attr_list[index]); sprintf(str, "Format %s", attr_list[index]);
if (getcfg_cond(lbs->name, condition, str, format)) { if (getcfg_cond(lbs->name, condition, str, format)) {
@ -10744,7 +10748,8 @@ void submit_elog(LOGBOOK * lbs)
if (equal_ustring(attr_options[i][0], "boolean")) { if (equal_ustring(attr_options[i][0], "boolean")) {
if (atoi(attr_list[i]) != 0 && atoi(attr_list[i]) != 1) { if (atoi(attr_list[i]) != 0 && atoi(attr_list[i]) != 1) {
sprintf(error, loc("Error: Value <b>%s</b> not allowed for boolean attributes"), sprintf(error,
loc("Error: Value <b>%s</b> not allowed for boolean attributes"),
getparam(attr_list[i])); getparam(attr_list[i]));
show_error(error); show_error(error);
return; return;