mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug with new elog entry #0 in logfile
This commit is contained in:
parent
80633bac29
commit
f1046d45e7
26
src/elogd.c
26
src/elogd.c
@ -23394,19 +23394,6 @@ void submit_elog(LOGBOOK *lbs) {
|
|||||||
strcpy(in_reply_to, isparam("reply_to") ? getparam("reply_to") : "");
|
strcpy(in_reply_to, isparam("reply_to") ? getparam("reply_to") : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_logging_level > 1) {
|
|
||||||
if (bmultiedit)
|
|
||||||
sprintf(str, "EDIT multiple entries");
|
|
||||||
else if (bdraft)
|
|
||||||
sprintf(str, "DRAFT entry #%d", message_id);
|
|
||||||
else if (bedit && !resubmit_orig)
|
|
||||||
sprintf(str, "EDIT entry #%d", message_id);
|
|
||||||
else
|
|
||||||
sprintf(str, "NEW entry #%d", message_id);
|
|
||||||
|
|
||||||
write_logfile(lbs, str);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bmultiedit) {
|
if (bmultiedit) {
|
||||||
for (i = n = 0; i < atoi(getparam("nsel")); i++) {
|
for (i = n = 0; i < atoi(getparam("nsel")); i++) {
|
||||||
sprintf(str, "s%d", i);
|
sprintf(str, "s%d", i);
|
||||||
@ -23447,6 +23434,19 @@ void submit_elog(LOGBOOK *lbs) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_logging_level > 1) {
|
||||||
|
if (bmultiedit)
|
||||||
|
sprintf(str, "EDIT multiple entries");
|
||||||
|
else if (bdraft)
|
||||||
|
sprintf(str, "DRAFT entry #%d", message_id);
|
||||||
|
else if (bedit && !resubmit_orig)
|
||||||
|
sprintf(str, "EDIT entry #%d", message_id);
|
||||||
|
else
|
||||||
|
sprintf(str, "NEW entry #%d", message_id);
|
||||||
|
|
||||||
|
write_logfile(lbs, str);
|
||||||
|
}
|
||||||
|
|
||||||
/* evaluate propagation of attributes */
|
/* evaluate propagation of attributes */
|
||||||
if (getcfg(lbs->name, "Propagate attributes", str, sizeof(str)))
|
if (getcfg(lbs->name, "Propagate attributes", str, sizeof(str)))
|
||||||
propagate_attrib(lbs, find_thread_head(lbs, message_id), attrib);
|
propagate_attrib(lbs, find_thread_head(lbs, message_id), attrib);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user