Evaluage 'pre/append on edit/reply' even for empty entries

SVN revision: 815
This commit is contained in:
Stefan Ritt 2004-03-08 08:59:06 +00:00
parent 661c0d395c
commit 2a6c16519c

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.282 2004/03/08 08:59:06 midas
Evaluage 'pre/append on edit/reply' even for empty entries
Revision 1.281 2004/03/08 08:13:09 midas Revision 1.281 2004/03/08 08:13:09 midas
Replaces __TIMESTAMP__ with __DATE__ and __TIME__ Replaces __TIMESTAMP__ with __DATE__ and __TIME__
@ -6907,7 +6910,6 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|| atoi(str) == 1) { || atoi(str) == 1) {
rsprintf("<textarea rows=%d cols=%d wrap=hard name=Text>", height, width); rsprintf("<textarea rows=%d cols=%d wrap=hard name=Text>", height, width);
if (text[0]) {
if (bedit) { if (bedit) {
if (bupload || (!bupload && !breedit) if (bupload || (!bupload && !breedit)
|| (breedit && !getcfg_cond(lbs->name, condition, "Preset text", str))) { || (breedit && !getcfg_cond(lbs->name, condition, "Preset text", str))) {
@ -6995,7 +6997,6 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
} }
} }
} }
}
if ((!message_id || breedit) if ((!message_id || breedit)
&& getcfg_cond(lbs->name, condition, "Preset text", str)) { && getcfg_cond(lbs->name, condition, "Preset text", str)) {