mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Fixed bug with multi edit
SVN revision: 1881
This commit is contained in:
parent
355dfe9a1f
commit
74bd65f8cc
11
src/elogd.c
11
src/elogd.c
@ -8822,7 +8822,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
if (isparam(str)) {
|
if (isparam(str)) {
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
size = TEXT_SIZE;
|
size = TEXT_SIZE;
|
||||||
el_retrieve(lbs, message_id, date, attr_list, attrib, lbs->n_attr,
|
el_retrieve(lbs, atoi(getparam(str)), date, attr_list, attrib, lbs->n_attr,
|
||||||
text, &size, orig_tag, reply_tag, att, encoding, locked_by);
|
text, &size, orig_tag, reply_tag, att, encoding, locked_by);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -20777,6 +20777,15 @@ void submit_elog(LOGBOOK * lbs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* check for attributes to keep */
|
||||||
|
if (bmultiedit) {
|
||||||
|
sprintf(str, "- %s -", loc("keep original values"));
|
||||||
|
for (i = 0; i < n_attr; i++) {
|
||||||
|
if (strieq(str, attrib[i]))
|
||||||
|
strlcpy(attrib[i], "<keep>", NAME_LENGTH);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
message_id = 0;
|
message_id = 0;
|
||||||
reply_to[0] = 0;
|
reply_to[0] = 0;
|
||||||
in_reply_to[0] = 0;
|
in_reply_to[0] = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user