mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug yielding in wrong search results
SVN revision: 1188
This commit is contained in:
parent
1333fff3c1
commit
443729ea39
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.547 2005/01/26 19:25:15 ritt
|
||||||
|
Fixed bug yielding in wrong search results
|
||||||
|
|
||||||
Revision 1.546 2005/01/25 21:06:56 ritt
|
Revision 1.546 2005/01/25 21:06:56 ritt
|
||||||
Version 2.5.6-1
|
Version 2.5.6-1
|
||||||
|
|
||||||
@ -15114,11 +15117,11 @@ void show_elog_list(LOGBOOK * lbs, INT past_n, INT last_n, INT page_n, char *inf
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* apply filter for AF_MULTI attributes */
|
/* apply filter for AF_MULTI attributes */
|
||||||
|
searched = found = FALSE;
|
||||||
for (i = 0; i < lbs->n_attr; i++) {
|
for (i = 0; i < lbs->n_attr; i++) {
|
||||||
if (attr_flags[i] & AF_MULTI) {
|
if (attr_flags[i] & AF_MULTI) {
|
||||||
|
|
||||||
/* OR of any of the values */
|
/* OR of any of the values */
|
||||||
searched = found = FALSE;
|
|
||||||
for (j = 0; j < MAX_N_LIST && attr_options[i][j][0]; j++) {
|
for (j = 0; j < MAX_N_LIST && attr_options[i][j][0]; j++) {
|
||||||
sprintf(str, "%s_%d", attr_list[i], j);
|
sprintf(str, "%s_%d", attr_list[i], j);
|
||||||
if (*getparam(str)) {
|
if (*getparam(str)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user