Actions
Bug #2337
closedAdvanced filter not working with last online field
Description
As described here:
it looks like the filtering does not work on the Last Online field.
Files
Actions
Added by nant about 14 years ago. Updated over 13 years ago.
Description
As described here:
it looks like the filtering does not work on the Last Online field.
Files
2337.patch (3.92 KB) 2337.patch | krileon, 27 April 2011 21:57 |
Confirmed, "is not" returns the same results as "is".
Reviewing further if the "Between" date is specified and not the "and" date then it'll find everyone with a date GREATER than specified. If the "and" date is specified and NOT the "Between" date then it'll find everyone with a date LESS than specified. This can be reversed with an IF statement to change the search operator based off search mode, which seams best approach (making "Between" the less than and "and" the greater than).
Seams cbSqlQueryPart needs to be expanded to handle ranges. Example query below with current usage of isnot.
WHERE ((u.`lastvisitDate` >= '2011-01-26')
AND (u.`lastvisitDate` <= '2011-01-28'))
If expanded to handle ranges would be as follows.
WHERE ((u.`lastvisitDate` NOT BETWEEN '2011-01-26' AND '2011-01-28'))
Appears can be resolved using OR instead of AND in those scenarios, which API certainly supports.
Completely rewrote the code responsible for search query criteria. Using addChildren method when necessary was able to provide an AND/OR scenario.
Fixed in r1487 by implementing the proposed patch. Thank you Kyle.