mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Filter entries with invalid date
SVN revision: 817
This commit is contained in:
parent
59b3d93290
commit
0c07adfa52
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.284 2004/03/08 12:52:51 midas
|
||||||
|
Filter entries with invalid date
|
||||||
|
|
||||||
Revision 1.283 2004/03/08 09:41:23 midas
|
Revision 1.283 2004/03/08 09:41:23 midas
|
||||||
Substitutions now also work with 'preset test'
|
Substitutions now also work with 'preset test'
|
||||||
|
|
||||||
@ -11925,6 +11928,12 @@ void show_elog_list(LOGBOOK * lbs, INT past_n, INT last_n, INT page_n)
|
|||||||
for (i = 0; i < lbs->n_attr; i++)
|
for (i = 0; i < lbs->n_attr; i++)
|
||||||
if (attr_flags[i] & AF_DATE) {
|
if (attr_flags[i] & AF_DATE) {
|
||||||
|
|
||||||
|
/* remove entry if no valid date */
|
||||||
|
if (atoi(attrib[i]) == 0) {
|
||||||
|
msg_list[index].lbs = NULL;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
sprintf(str, "%da", i);
|
sprintf(str, "%da", i);
|
||||||
ltime = retrieve_date(str, TRUE);
|
ltime = retrieve_date(str, TRUE);
|
||||||
if (ltime > 0 && atoi(attrib[i]) > 0 && atoi(attrib[i]) < ltime) {
|
if (ltime > 0 && atoi(attrib[i]) > 0 && atoi(attrib[i]) < ltime) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user