From 5290f3b003827cc9e484429bf031b74f065b9364 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 25 Mar 2003 19:55:15 +0000 Subject: [PATCH] Sort threaded list correctly if replies are resubmitted SVN revision: 448 --- src/elogd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/elogd.c b/src/elogd.c index b36569c1..3dc2962c 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.52 2003/03/25 19:55:15 midas + Sort threaded list correctly if replies are resubmitted + Revision 1.51 2003/03/25 16:08:46 midas Fixed problem that uploading attachments on a reply deleted the original message @@ -8237,6 +8240,10 @@ LOGBOOK *lbs_cur; if (j < index) { + /* set date from current message, if later */ + if (strcmp(msg_list[j].string, msg_list[index].string) < 0) + strcpy(msg_list[j].string, msg_list[index].string); + msg_list[index].lbs = NULL; // delete current message continue; }