From 2b96b8dcb06f2290a86e66f5d8576fa54d8039f7 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 25 Oct 2007 15:32:07 +0000 Subject: [PATCH] Fixed bug with nonworking 'date' quick filter SVN revision: 1951 --- NT/elog.vcproj | 2 +- src/elogd.c | 32 ++++++++++++++++++++++---------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/NT/elog.vcproj b/NT/elog.vcproj index ea6cedd0..9240375b 100755 --- a/NT/elog.vcproj +++ b/NT/elog.vcproj @@ -131,7 +131,7 @@ n_attr; attr_index++) if (strieq(list[index], attr_list[attr_index])) break; - if (attr_index == lbs->n_attr) { + if (attr_index == lbs->n_attr && + !strieq(list[index], "Date") && !strieq(list[index], "Subtext")) { rsprintf("Error: Attribute \"%s\" for quick filter not found", list[index]); attr_index = 0; } - if (strieq(list[index], loc("Date"))) { + if (strieq(list[index], "Date")) { i = isparam("last") ? atoi(getparam("last")) : 0; rsprintf("\n", list[index], str); + rsprintf(" name=\"Subtext\" value=\"%s\">\n", str); + } else { + sprintf(str, loc("Enter %s"), list[index]); + rsprintf + ("\n", list[index], str); + } } } else {