mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed wrong link if last entry in logbook has been moved
SVN revision: 1127
This commit is contained in:
parent
cd6d394793
commit
1b7c97e129
10
src/elogd.c
10
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.508 2004/11/06 16:45:14 midas
|
||||||
|
Fixed wrong link if last entry in logbook has been moved
|
||||||
|
|
||||||
Revision 1.507 2004/11/03 10:01:48 midas
|
Revision 1.507 2004/11/03 10:01:48 midas
|
||||||
Version 2.5.5
|
Version 2.5.5
|
||||||
|
|
||||||
@ -16687,7 +16690,10 @@ void copy_to(LOGBOOK * lbs, int src_id, char *dest_logbook, int move, int orig_i
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* display status message */
|
/* display status message */
|
||||||
sprintf(str, "%d", source_id);
|
if (source_id)
|
||||||
|
sprintf(str, "%d", source_id);
|
||||||
|
else
|
||||||
|
str[0] = 0;
|
||||||
show_standard_header(lbs, FALSE, loc("Copy ELog entry"), str, FALSE);
|
show_standard_header(lbs, FALSE, loc("Copy ELog entry"), str, FALSE);
|
||||||
|
|
||||||
rsprintf("<table class=\"dlgframe\" cellspacing=0 align=center>");
|
rsprintf("<table class=\"dlgframe\" cellspacing=0 align=center>");
|
||||||
@ -16719,7 +16725,7 @@ void copy_to(LOGBOOK * lbs, int src_id, char *dest_logbook, int move, int orig_i
|
|||||||
}
|
}
|
||||||
|
|
||||||
rsprintf("</b></tr>\n");
|
rsprintf("</b></tr>\n");
|
||||||
if (src_id)
|
if (source_id)
|
||||||
rsprintf
|
rsprintf
|
||||||
("<tr><td align=center class=\"dlgform\">%s <a href=\"../%s/%d\">%s</td></tr>\n",
|
("<tr><td align=center class=\"dlgform\">%s <a href=\"../%s/%d\">%s</td></tr>\n",
|
||||||
loc("Go to"), lbs->name, source_id, lbs->name);
|
loc("Go to"), lbs->name, source_id, lbs->name);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user