mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed wrong reply links with "Preserve IDs"
SVN revision: 2208
This commit is contained in:
parent
8859bfd238
commit
6c9df51d75
@ -22729,8 +22729,12 @@ void copy_to(LOGBOOK * lbs, int src_id, char *dest_logbook, int move, int orig_i
|
||||
/* submit in destination logbook without links, submit all attributes from
|
||||
the source logbook even if the destination has a differnt number of attributes */
|
||||
|
||||
message_id = el_submit(lbs_dest, message_id, bedit, date, attr_list, attrib, lbs->n_attr, text, str, "",
|
||||
encoding, attachment, TRUE, NULL);
|
||||
if (getcfg(lbs->name, "Preserve IDs", str, sizeof(str)) && atoi(str) == 1)
|
||||
message_id = el_submit(lbs_dest, message_id, bedit, date, attr_list, attrib, lbs->n_attr, text, in_reply_to, reply_to,
|
||||
encoding, attachment, TRUE, NULL);
|
||||
else
|
||||
message_id = el_submit(lbs_dest, message_id, bedit, date, attr_list, attrib, lbs->n_attr, text, str, "",
|
||||
encoding, attachment, TRUE, NULL);
|
||||
|
||||
if (message_id <= 0) {
|
||||
sprintf(str, loc("New entry cannot be written to directory \"%s\""), lbs_dest->data_dir);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user