Fixed bug with missing date after el_submit()

SVN revision: 1537
This commit is contained in:
2005-10-27 09:58:50 +00:00
parent 541cbf42bd
commit 86c7625df9
+8 -1
View File
@@ -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