mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed bug with ### presets
SVN revision: 1606
This commit is contained in:
parent
3fd6385906
commit
6f5f1257c3
@ -8117,7 +8117,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
strsubst_list(preset, sizeof(preset), slist, svalue, i);
|
||||
|
||||
/* check for index substitution */
|
||||
if (!bedit && strchr(preset, '%')) {
|
||||
if (!bedit && (strchr(preset, '%') || strchr(preset, '#'))) {
|
||||
/* get index */
|
||||
get_auto_index(lbs, index, preset, str, sizeof(str));
|
||||
strcpy(preset, str);
|
||||
@ -8139,7 +8139,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
strsubst_list(preset, sizeof(preset), slist, svalue, i);
|
||||
|
||||
/* check for index substitution */
|
||||
if (!bedit && strchr(preset, '%')) {
|
||||
if (!bedit && (strchr(preset, '%') || strchr(preset, '#'))) {
|
||||
/* get index */
|
||||
get_auto_index(lbs, index, preset, str, sizeof(str));
|
||||
strcpy(preset, str);
|
||||
@ -8183,7 +8183,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
strsubst_list(preset, sizeof(preset), slist, svalue, i);
|
||||
|
||||
/* check for index substitution */
|
||||
if (!bedit && strchr(preset, '%')) {
|
||||
if (!bedit && (strchr(preset, '%') || strchr(preset, '#'))) {
|
||||
/* get index */
|
||||
get_auto_index(lbs, index, preset, str, sizeof(str));
|
||||
strcpy(preset, str);
|
||||
@ -8205,7 +8205,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
strsubst_list(preset, sizeof(preset), slist, svalue, i);
|
||||
|
||||
/* check for index substitution */
|
||||
if (!bedit && strchr(preset, '%')) {
|
||||
if (!bedit && (strchr(preset, '%') || strchr(preset, '#'))) {
|
||||
/* get index */
|
||||
get_auto_index(lbs, index, preset, str, sizeof(str));
|
||||
strcpy(preset, str);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user