From 86c7625df94ce0db130416ef47f72df68b9a274b Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 27 Oct 2005 09:58:50 +0000 Subject: [PATCH] Fixed bug with missing date after el_submit() SVN revision: 1537 --- src/elogd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index 6a4c6350..6c2524a6 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -18331,6 +18331,10 @@ void submit_elog(LOGBOOK * lbs) if (resubmit_orig) message_id = el_move_message_thread(lbs, resubmit_orig); + /* retrieve submission date */ + if (date[0] == 0) + el_retrieve(lbs, message_id, date, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + /*---- replace relative elog:/x link by elog:n/x link */ if (stristr(getparam("text"), "elog:/")) { p = getparam("text"); @@ -21408,8 +21412,11 @@ void interprete(char *lbook, char *path) /* check for "Back" button */ if (strieq(command, loc("Back"))) { if (isparam("edit_id")) { + /* unlock message */ - el_lock_message(lbs, atoi(getparam("edit_id")), NULL); + if (getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1) + el_lock_message(lbs, atoi(getparam("edit_id")), NULL); + /* redirect to message */ sprintf(str, "../%s/%s", logbook_enc, getparam("edit_id")); } else