mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed bug with conditional attributes
SVN revision: 735
This commit is contained in:
parent
d3699d4296
commit
4975608227
11
src/elogd.c
11
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.226 2004/02/03 08:49:15 midas
|
||||||
|
Fixed bug with conditional attributes
|
||||||
|
|
||||||
Revision 1.225 2004/02/03 08:38:23 midas
|
Revision 1.225 2004/02/03 08:38:23 midas
|
||||||
Validation now works with attributes containing blanks
|
Validation now works with attributes containing blanks
|
||||||
|
|
||||||
@ -5874,11 +5877,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
|
|
||||||
/* get attributes from parameters */
|
/* get attributes from parameters */
|
||||||
for (i = 0; i < lbs->n_attr; i++) {
|
for (i = 0; i < lbs->n_attr; i++) {
|
||||||
|
strcpy(ua, attr_list[i]);
|
||||||
|
btou(ua);
|
||||||
if (attr_flags[i] & AF_MULTI) {
|
if (attr_flags[i] & AF_MULTI) {
|
||||||
attrib[i][0] = 0;
|
attrib[i][0] = 0;
|
||||||
first = 1;
|
first = 1;
|
||||||
for (j = 0; j < MAX_N_LIST; j++) {
|
for (j = 0; j < MAX_N_LIST; j++) {
|
||||||
sprintf(str, "%s#%d", attr_list[i], j);
|
sprintf(str, "%s#%d", ua, j);
|
||||||
if (getparam(str)) {
|
if (getparam(str)) {
|
||||||
if (*getparam(str)) {
|
if (*getparam(str)) {
|
||||||
if (first)
|
if (first)
|
||||||
@ -5894,7 +5899,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
strlcpy(attrib[i], getparam(attr_list[i]), NAME_LENGTH);
|
strlcpy(attrib[i], getparam(ua), NAME_LENGTH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6758,7 +6763,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
/*---- menu buttons again ----*/
|
/*---- menu buttons again ----*/
|
||||||
|
|
||||||
rsprintf("<tr><td class=\"menuframe\"><span class=\"menu1\">\n");
|
rsprintf("<tr><td class=\"menuframe\"><span class=\"menu1\">\n");
|
||||||
rsprintf("<input type=\"submit\" name=\"cmd\" value=\"%s\">\n", loc("Submit"));
|
rsprintf("<input type=\"submit\" name=\"cmd\" value=\"%s\" onClick=\"return chkform();\">\n", loc("Submit"));
|
||||||
rsprintf("<input type=\"submit\" name=\"cmd\" value=\"%s\">\n", loc("Back"));
|
rsprintf("<input type=\"submit\" name=\"cmd\" value=\"%s\">\n", loc("Back"));
|
||||||
rsprintf("</span></td></tr>\n\n");
|
rsprintf("</span></td></tr>\n\n");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user