Fixed problem that attachments could not be deleted

SVN revision: 990
This commit is contained in:
Stefan Ritt 2004-07-28 13:24:06 +00:00
parent 62e6810435
commit 47f903d9ab

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.410 2004/07/28 13:24:06 midas
Fixed problem that attachments could not be deleted
Revision 1.409 2004/07/28 12:52:30 midas Revision 1.409 2004/07/28 12:52:30 midas
Added int_vasprintf from Recai Oktas Added int_vasprintf from Recai Oktas
@ -18354,12 +18357,6 @@ void interprete(char *lbook, char *path)
return; return;
} }
message_id = atoi(dec_path);
if (strieq(command, loc("Upload"))) {
show_edit_form(lbs, atoi(getparam("edit_id")), FALSE, TRUE, TRUE, FALSE);
return;
}
/* check for deletion of attachments */ /* check for deletion of attachments */
for (i = 0; i < MAX_ATTACHMENTS; i++) { for (i = 0; i < MAX_ATTACHMENTS; i++) {
sprintf(str, "delatt%d", i); sprintf(str, "delatt%d", i);
@ -18386,6 +18383,12 @@ void interprete(char *lbook, char *path)
} }
} }
message_id = atoi(dec_path);
if (strieq(command, loc("Upload"))) {
show_edit_form(lbs, atoi(getparam("edit_id")), FALSE, TRUE, TRUE, FALSE);
return;
}
if (strieq(command, loc("Edit"))) { if (strieq(command, loc("Edit"))) {
if (message_id) { if (message_id) {
show_edit_form(lbs, message_id, FALSE, TRUE, FALSE, FALSE); show_edit_form(lbs, message_id, FALSE, TRUE, FALSE, FALSE);